Websocket Market
Access
Route path:: /market
Params
Parameter | Description |
---|---|
Market | currency pair code |
Range | Year = 1, Month = 2, Day = 3, Hour4 = 4, Hour = 5, 30 Minutes = 6, 15 Minutes = 7, 5 Minutes = 8, 3 Minutes = 9, Minute = 10 |
Subscriptions
After successfully establishing a connection with the Websocket Server, the Websocket Client sends the following request to subscribe to a specific topic:
{ "Method": "subscribe", "Params": ['BTC_USDT', 10 ] }
After a successful subscription, the Websocket Client will receive a confirmation message:
{ "Result": "Subscribed" } After that, once the subscribed data is updated, the Websocket Client will receive the update message pushed by the Server
Unsubscribe
The format to unsubscribe is as follows:
{ "Method": "unsubscribe", "Params": ['BTC_USDT', 10] }
Confirmation of Unsubscription:
{ "Result": "Unsubscribed" }
Responses
Parameter | Description |
---|---|
CurrencyId | currency pair code |
Date | latest date |
Range | time range |
Min | min price |
Max | max price |
Open | open price |
Close | close price |
Volume | quote currency volume |
VolumeBase | volume in base currency |