Before you can send messages to a particular WebSocket channel, you must first subscribe to it.Some of the market data websocket channels take an instrument_codes property alongside the name of the channel.You can only subscribe to one channel in a single SUBSCRIBE message.
Subscription Request#
{
"type": "SUBSCRIBE",
"channels": [
{
"name": "TRADING"
}
]
}
Subscription Response#
Success#
{
"type": "SUBSCRIPTIONS",
"channels": [
{
"name": "TRADING"
}
],
"time": 1731671164898119453
}
SubscriptionSuccessResponse
Error#
{
"error": "Invalid channel."
}
SubscriptionErrorResponse