WebSocketStocks & Equities

Twelve Data WebSocket (Real-Time Streaming)

Twelve Data WebSocket (Real-Time Streaming) is a websocket from Twelve Data providing stocks & equities data. Twelve Data's WebSocket API pushes real-time price quotes for stocks, indices, forex, crypto, ETFs, and commodities with ~170ms average latency. A Polymarket bot can use it to stream live TSLA/SPX/index prices and settle or trade intraday "will X close above $Y" equity and index markets as the underlying ticks.

At a glance

ProviderTwelve Data
TypeWebSocket
CategoryStocks & Equities
Real-timeYes — streaming
AuthAPI key
PricingFree trial WS tier; real-time WebSocket streaming starts on the Pro plan (~$191-229/mo); Grow from ~$66-79/mo — Basic: $0/mo — 800 API requests/day, 8 trial WebSocket credits (limited symbols, no full real-time WS), Grow: ~$66/mo annual ($79 monthly) — 377 API credits/min, 8 trial WS credits, 20+ markets, Pro: ~$191/mo annual ($229 monthly) — 1,597 API credits/min, 1,500 WebSocket credits (real-time streaming), 70+ markets, Ultra: ~$832/mo annual ($999 monthly) — 10,946 API credits/min, 10,000 WebSocket credits, all 84 markets, 99.95% SLA

What data it provides

  • Real-time streaming price quotes (price endpoint)
  • US & global stocks and equities
  • Stock indices (e.g. SPX) and ETFs
  • Forex currency pairs and cryptocurrencies
  • Commodities
  • Event/timestamp metadata per tick (symbol, price, timestamp)

Features

  • ~170ms average streaming latency across all instruments
  • Endpoint wss://ws.twelvedata.com; subscribe/unsubscribe to symbols over a single connection
  • Two independent counters: API credits/min and concurrent WebSocket symbol subscriptions (1 credit per subscribed symbol)
  • Official SDKs incl. Python client (twelvedata-python) with WebSocket support
  • 84 global markets at top tier; coverage scales by plan
  • API-key auth shared with REST; 429 on rate-limit overage

Links

Use it in a bot

Other stocks & equities 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