Purpose
Polystrike is a measurement and data tool for Polymarket tweet-count markets, and this repository is a collection of its code examples. Prediction markets exist on Polymarket that use Elon Musk's and Ted Cruz's tweet counts as the underlying metric, and Polystrike provides a real-time tweet stream and count API to help users compare count differences across sources.
Main capabilities
A single API call can retrieve three counts for each active market:
- Polystrike's own independent count, updated every 60 seconds;
- The official settlement count from the XTracker oracle;
- The count displayed in the Polymarket user interface;
It also returns the differences (deltas) among the three.
It additionally provides:
- A local MCP server
mcp-server/server.js, based on stdio, wrapping the same public REST API tools as the hosted server; - Python and TypeScript client examples;
- A Claude Desktop configuration example;
- A public REST interface, including
GET /api/v1/meta/elon(Elon Musk market, free),GET /api/v1/meta/cruz(Ted Cruz market, free),GET /api/v1/meta/{account}/tweets(recent tweet stream; the free version returns the latest 15).
Usage
The free tier requires no key and is limited to 100 requests per hour. Free counts have a 30-minute delay, and the freshness_delay_sec field in each response indicates this delay. For real-time counts, WebSocket push, full tweet archives, count and price history, and batch parquet data, set the POLYSTRIKE_API_KEY environment variable and use a Data key ($29/month, paid in USDC via the Polygon or Base network). The repository also provides API documentation, an OpenAPI specification, and an MCP configuration guide.
Use cases
Suitable for developers who need to observe data from Polymarket tweet-count markets, compare differences between Polystrike and XTracker and Polymarket UI counts, or connect this data stream in MCP-supporting clients such as Claude Desktop.
Limitations and notes
- The XTracker oracle is the settlement authority, and Polymarket pays according to its numbers. Polystrike measures faster (about 60 seconds versus about 5 minutes), but does not replace XTracker.
- Deleted tweets that were captured by Polystrike before deletion are still retained in the count; settlement deltas caused by deletions (settlement_delta) do not constitute a real advantage.
- The official description clearly states: these are measurement tools and do not constitute a promise of profit.