This subscription is updating market statistics from last 24 hours: highest/lowest order and volume. Applies to selected market or all markets if market code parameter is left blank.

📘

If you want to get information from all markets just use path without market symbol:
"path": "stats"

{
 "action": "subscribe-public",
 "module": "trading",
 "path": "stats/{market_code}"
}
{
  "action": "push",
  "topic": "trading/stats/btc-pln",
  "message": [
    {
      "m": "BTC-PLN",
      "h": 28094.15,
      "l": 27381.89,
      "v": 1837.10247456,
      "r24h": 27940
    }
  ],
  "timestamp": "1576846510713",
  "seqNo": 430772
}
{
    "requestId": "78539fe0-e9b0-4e4e-8c86-70b36aa93d4f",
    "action": "proxy",
    "module": "trading",
    "path": "stats/{market_code}"
}
{
  "action": "proxy-response",
  "requestId": "78539fe0-e9b0-4e4e-8c86-70b36aa93d4f",
  "statusCode": 200,
  "body": {
    "status": "Ok",
    "stats": {
      "m": "BTC-PLN",
      "h": "28094.15",
      "l": "27381.89",
      "v": "1837.37063918",
      "r24h": "27978.69"
    }
  }
}

Response details

Key

Type

Description

stats

array

m

string

Currency pair of the market.

h

decimal

Highest price of the last 24 hours.

l

decimal

Lowest price of the last 24 hours.

v

decimal

Volume of the last 24 hours.

r24h

decimal

Average rate of the last 24 hours.