Skip to navigation

Historical prices

Get OHLCV time intervals for a symbol in a specified window. The range can be specified by start and end UNIX timestamps, The interval can be specified using:

  • z, which can be d for day, h for hour, m for minute, or s for second.
  • n, which is the length of the interval.

For example, to fetch 5 second intervals, you would set z to s and n to 5. To fetch 15 minute intervals, you would set z to m and n to 15.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

symbolstringRequired

Query parameters

startintegerOptional
The start timestamp for the chart window. This should be a UNIX timestamp.
endintegerOptional
The start timestamp for the chart window. This should be a UNIX timestamp.
zstringOptional
The interval of the chart window. Can be d, h, m, or s for day, hour, minute, second.
nintegerOptional
The number of intervals to fetch.

Response

Successful Response
datalist of objectsOptional
messagestringOptional
A message with the response status.
infomap from strings to any or stringOptional
Additional information or metadata about the response. Varies by response type.

Errors

422
Unprocessable Entity