Skip to main content

Subscription

WSProductionwss://ws.btse.com/ws/spotTestnetwss://testws.btse.io/ws/spot

Subscribe or unsubscribe from any topic.

Request Parameters​

NameTypeRequiredDescription
opStringYesOperation β€” subscribe Β· unsubscribe
argsString[]YesArray of topic strings

Response Content​

NameTypeRequiredDescription
eventStringNoEcho of the event type
channelString[]NoSuccessfully subscribed topics
example

Request

{
"op": "subscribe",
"args": [
"tradeHistoryApi:BTC-USD"
]
}

Response

{
"event": "subscribe",
"channel": [
"tradeHistoryApi:BTC-USD"
]
}