Skip to main content

Websocket Market

Access

Route path:: /market

Params

ParameterDescription
Marketcurrency pair code
RangeYear = 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

ParameterDescription
CurrencyIdcurrency pair code
Datelatest date
Rangetime range
Minmin price
Maxmax price
Openopen price
Closeclose price
Volumequote currency volume
VolumeBasevolume in base currency