Market Status methods
Used to get information about market activity for a specific pair
List of Market Status methods:
Market Status Query - used for one-time data get requests.
Market Status Subscribe - used to subscribe to receive real-time updates.
Market Status Unsubscribe - used to unsubscribe from the Market Status Subscribe method.
Market Status Query method
Used for one-time data get requests.
Method
state.queryRequest "params" parameters
market*
STRING
Any public pair
BTC_USDT
period*
NUMERIC
Time interval (60 = 1 min, 900 = 15 min, 1800 = 30 min, 3600 = 1 h, 14400 = 4 h, 86400 = 1 d, etc)
86400
Request example
{
"method":"state.query",
"params":
[
"BTC_USDT",
86400
],
"id":1
}Response "result" parameters
period
NUMERIC
last
STRING
open
STRING
close
STRING
high
STRING
low
STRING
deal
STRING
volume
STRING
change
STRING
Response example
Market Status Subscribe method
Used to subscribe to receive real-time updates.
Method
Request "prarams" paramaeters
market*
STRING
Any public pair
ETH_BTC
period*
NUMERIC
Time interval (60 = 1 min, 900 = 15 min, 1800 = 30 min, 3600 = 1 h, 14400 = 4 h, 86400 = 1 d, etc)
86400
Request example
Response example (successfully subscribed)
Response "result" parameters ("state.update")
period
NUMERIC
volume
STRING
last
STRING
open
STRING
low
STRING
close
STRING
high
STRING
deal
STRING
Response example ("state.update")
Market Status Unsubscribe method
Used to unsubscribe from the Market Status Subscribe method.
Method
Request example
Response example (successfully unsubscribed)
Last updated