Skip to content

Get market stats

GET
/markets/{market_id}/stats

Rolling 24-hour statistics for a market.

Parameters

Path Parameters

market_id*
Type
integer
Required
Format
"int32"

Query Parameters

market_type

perp or spot. Defaults to perp.

Type
string
Valid values
"perp""spot"
Default
"perp"

Responses

24h market statistics.

application/json
JSON
{
  
"market_id": 0,
  
"last_price": "string",
  
"high_24h": "string",
  
"low_24h": "string",
  
"price_change_24h_bps": 0,
  
"volume_24h_base": "1000000",
  
"volume_24h_quote": "1000000",
  
"trades_24h": 0,
  
"open_interest": "string"
}

Playground

Variables
Key
Value

Samples

Powered by VitePress OpenAPI