WebSocketFinance & Macro

Twelve Data WebSocket API

Twelve Data WebSocket API is a websocket from Twelve Data providing finance & macro data. Twelve Data offers a low-latency WebSocket feed (wss://ws.twelvedata.com) for streaming real-time forex, crypto, equity, ETF, and index quotes, alongside a REST API covering fundamentals, fixed-income/treasury data, and an economic calendar. A Polymarket bot can use it to watch the live market reaction (FX, rates proxies, crypto) around macro prints like FOMC and CPI to inform FOMC/CPI/recession markets.

At a glance

ProviderTwelve Data
TypeWebSocket
CategoryFinance & Macro
Real-timeYes — streaming
AuthAPI key
PricingFree tier (8 API credits, WebSocket trial only); paid from $79/mo (Grow); full WebSocket from $229/mo (Pro) — Basic: Free — 8 API credits (800/day cap), real-time US equities/forex/crypto, WebSocket trial credits only, Grow: $79/mo ($66/mo annual) — 377 credits, 20+ markets, fundamentals, no daily limit; WebSocket still trial-only, Pro: $229/mo ($191/mo annual) — 1,597 credits, 70+ markets, 1,500 WebSocket credits (real WebSocket access starts here), Ultra: $999/mo ($832/mo annual) — 10,946 credits, all markets, 10,000 WebSocket credits, 99.95% SLA, dedicated CSM

What data it provides

  • Real-time forex pairs (major, minor, exotic) via WebSocket
  • Real-time crypto quotes across 180+ exchanges (Binance, Coinbase, Kraken, OKX)
  • Real-time/EOD equities, ETFs, and indices across 90+ global exchanges
  • Fixed-income data including bond and treasury yields
  • Fundamentals: company profiles, financial statements, earnings, dividends, analyst ratings
  • Economic calendar and commodities (metals, energy, agricultural)

Features

  • WebSocket streaming at wss://ws.twelvedata.com, ~170ms average latency
  • Full WebSocket access requires Pro plan or above (lower tiers get trial credits only)
  • Credit-based rate limiting; Basic free tier capped at 800 requests/day, paid tiers remove daily cap
  • Coverage of 1M+ instruments across stocks, forex, crypto, ETFs, indices, commodities, mutual funds
  • Official SDKs for Python, Node.js, Go, Java, R plus a CLI and OpenAPI/Swagger spec
  • MCP server available for streaming market data into agent/LLM applications

Links

Use it in a bot

Other finance & macro data sources

Listed, not endorsed. Pricing and capabilities change without notice — check the provider's own documentation before you depend on anything here. Browse the full data resources directory or the strategy database.
Join Discord