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
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 name
subscribe, unSubscribe, subscriptionListsymbolSymbol name
AAPL, 2330, BTCUSDTproviderProvider name
Binance, Taiwan, USmarketMarket name
Client, 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 dataunSubscribeUnsubscribesubscriptionListQuery subscription listImportant 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
