Trades

The trades endpoint allows the retrieval of past public trades and includes details such as price, size, and time. Optional parameters can be used to limit the number of results; you can specify a start and end timestamp, a limit, and a sorting method.

Response Fields

For trading pair symbols (ex. tBTCUSD)

IndexFieldTypeDescription
[0]IDintID of the trade
[1]MTSintMillisecond epoch timestamp
[2]AMOUNTfloatHow much was bought (positive) or sold (negative)
[3]PRICEfloatPrice at which the trade was executed

For funding currency symbols (ex. fUSD)

IndexFieldTypeDescription
[0]IDintID of the trade
[1]MTSintMillisecond epoch timestamp
[2]AMOUNTfloatHow much was bought (positive) or sold (negative)
[3]RATEfloatRate at which funding transaction occurred
[4]PERIODintAmount of time the funding transaction was for

Rate Limit: 15 reqs/min (requests per minute)
Path Params
string
required
Defaults to tBTCUSD

The symbol you want information about. (e.g. tBTCUSD, tETHUSD, fUSD, fBTC)

Query Params
int32
Defaults to 125

Number of records in response (max. 10000).

int32
Defaults to -1

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

int64

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

int64

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

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json