Skip to main content

Ticker

Ticker data stream.

Connect

websocat 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 is symbol@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.
{
"method": "SUBSCRIBE",
"params": [
string
],
"id": int32
}

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.
{
"e": string,
"d": int,
"s": string,
"b": string,
"q": string,
"p": float,
"P": float,
"v": float,
}