WebSocket API

Real-time Market Data Service

Connect via WebSocket to receive real-time quotes and K-line data for US stocks, Taiwan stocks, and cryptocurrencies.

Supported Markets

US Stocks

Real-time quotes and K-line data

Taiwan Stocks

15-second delayed quotes

Cryptocurrency

Binance spot and futures

Subscription Quota

The number of available connections depends on your account plan

View Plan Details

Request Format

Send the following JSON format to subscribe or unsubscribe from market data

Request
{ "event": "subscribe", "data": { "symbol": "AAPL", "provider": "US", "market": "Client" } }
eventEvent namesubscribe, unSubscribe, subscriptionList
symbolSymbol nameAAPL, 2330, BTCUSDT
providerProvider nameBinance, Taiwan, US
marketMarket nameClient, FutureClient (Binance only)

Response Format

After successful subscription, you will receive real-time data in the following format

Response
{ "m": "Client", "s": "AAPL", "t": 1683259711641, "p": "178.50", "v": "12500" }
mMarket (optional)
sSymbol ID
tTimestamp
pPrice
vVolume

Event Types

subscribeSubscribe to market data
unSubscribeUnsubscribe
subscriptionListQuery subscription list

Important Notes

WsToken must be obtained from the user settings page after registrationGet Token

US stocks currently support only 50 symbols

Taiwan stock quotes have a 15-second delay

Still stuck?

Tell us which step you are on and we will help you out