Payloads, Token Detection & OCR
Complete reference for TweetStream alert data structures and enrichment features
Tweet Lifecycle
When a monitored account tweets, TweetStream sends two messages:
content- The tweet text, author, and media (arrives first)meta- Enrichment data: OCR results, detected tokens, markets (arrives shortly after)
Additional operations include update (tweet edits) and delete (tweet deletions).
Tweet Content Type
Tweet Meta Type
The meta payload contains all enrichment data:
Token Detection
TweetStream automatically detects tokens from multiple sources:
| Source | Examples |
|---|---|
| $TICKER symbols | $BTC, $ETH, $SOL |
| Contract addresses | 0x... (EVM), pump... (Solana) |
| DEX URLs | dexscreener.com, birdeye.so |
| OCR text | Tickers and addresses in images |
OCR Text Extraction
Text is automatically extracted from images attached to tweets. This includes:
- Screenshots of charts and trading terminals
- Images containing token information
- Announcements and promotional graphics
OCR results are included in the meta.ocr.text field and are also scanned for token detection.
Prediction Markets
References to Polymarket and Kalshi markets are detected and enriched with live odds. The detected.prediction array includes:
- Market ID and title
- Current price (probability)
- Direct link to the market