v1

latestOpenAPI 3.1.02026-07-24690345.5 KB

Stats

The Stats endpoint provides various statistics on a specified trading pair or funding currency. Use the available keys to specify which statistic you wish to retrieve.

get/stats1/{key}:{size}:{sym_platform}:{side_pair}/{section}

Path parameters

keystring required

Available keys: "funding.size", "credits.size", "credits.size.sym", "pos.size", "vol.1d", "vol.7d", "vol.30d", "vwap"

sizestring required

Available values: '1m' (for keys: "pos.size", "funding.size", "credits.size", "credits.size.sym"), "30m" (for keys: vol.1d, vol.7d, vol.30d), "1d" (for keys: vwap)

sym_platformstring required

The symbol you want information about. (e.g. tBTCUSD, tETHUSD, fUSD, fBTC) (used for keys: "pos.size", "funding.size", "credits.size", "credits.size.sym", "vwap", "vol1d/7d/30d").

side_pairstring required

Used to specify the side for "pos.size" key. Available values: "long", "short". Only for non-funding queries. Used to specify the trading pair on credits.size.sym.

sectionstring required

Available values: "last", "hist".

Query parameters

sortinteger

+1: sort in ascending order | -1: sort in descending order (by MTS field).

startinteger

If start is given, only records with MTS >= start (milliseconds) will be given as response.

endinteger

If end is given, only records with MTS <= end (milliseconds) will be given as response.

limitinteger

Number of records in response (max. 10000).

Response

200