Historical trades
GET {{baseUrl}}/v1beta3/crypto/:loc/trades?symbols=BTC/USD,LTC/USD
The crypto trades API provides historical trade data for a list of crypto symbols between the specified dates.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
symbols | string | (Required) Comma separated list of symbols. | |
start | string | The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. | |
If missing, the default value is the beginning of the current day. | |||
end | string | The inclusive end of the interval. Format: RFC-3339 or YYYY-MM-DD. | |
If missing, the default value is the current time. | |||
limit | number | The maximum number of data points to return in the response. | |
The API may return less, even if there are more available data points in the requested interval. | |||
Always check the next_page_token for more pages. | |||
The limit applies to the total number of data points, not per symbol! | |||
page_token | string | Pagination token to continue from. The value to pass here is returned in specific requests when more data is available than the request limit allows. | |
sort | string | Sort data in ascending or descending order. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"trades":{"BTC/USD":[{"t":"2022-05-18T12:01:00.537052Z","p":29791,"s":0.0016,"tks":"S","i":31455289}],"ETH/USD":[{"t":"2022-05-18T12:01:00.363547Z","p":2027.6,"s":0.06,"tks":"S","i":31455287},{"t":"2022-05-18T12:01:00.363547Z","p":2027.6,"s":0.136,"tks":"S","i":31455288}]},"next_page_token":null}