Ticker
Ticker data stream.
Connect
- websocat
- wscat
websocat wss://api.datamaxiplus.com/ws/v1/ticker -H 'X-DTMX-APIKEY: $YOUR_API_KEY'
wscat -c wss://api.datamaxiplus.com/ws/v1/ticker -H 'X-DTMX-APIKEY: $YOUR_API_KEY'
Subscribe
method
specifies the type of request.params
list represents of symbols on exchanges that user wants to subscribe. The format of parameter issymbol@exchange
(e.g."BTC-KRW@upbit"
). You can request the list of supported exchanges with /api/v1/ticker/exchanges symbols with /api/v1/ticker/symbols endpoint.- The
id
uniquely identifies the subscription request.
- schema
- example
{
"method": "SUBSCRIBE",
"params": [
string
],
"id": int32
}
{
"method": "SUBSCRIBE",
"params": [
"BTC-KRW@upbit"
],
"id": 1
}
Response
e
represents the exchange name.t
represents the date and the time in UTC milliseconds.s
represents the symbol (base-quote
).b
represents the base token.q
represents the quote token.p
represents the latest price.P
represents the price 24 hours ago.v
represents the trading volume in the last 24 hours.
- schema
- example
{
"e": string,
"d": int,
"s": string,
"b": string,
"q": string,
"p": float,
"P": float,
"v": float,
}
{
"e": "upbit",
"d": 1634025600000,
"s": "BTC-KRW",
"b": "BTC",
"q": "KRW",
"p": 92456439.30,
"P": 91533282.73,
"v": 23423"
}