Historical bars

GET {{baseUrl}}/v1beta3/crypto/:loc/bars?symbols=BTC/USD,LTC/USD&timeframe=1Min

The crypto bars API provides historical aggregates for a list of crypto symbols between the specified dates.

Request Params

KeyDatatypeRequiredDescription
symbolsstring(Required) Comma separated list of symbols.
timeframestring(Required) The timeframe of the bar aggregation. 5Min for example creates 5 minute aggregates.
You can use the following values:
  • [1-59]Min / T
  • [1-23]Hour / H
  • 1Day / D
  • 1Week / W
  • [1,2,3,4,6,12]Month / M | | 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

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"bars":{"BTC/USD":[{"t":"2022-05-27T10:18:00Z","o":28999,"h":29003,"l":28999,"c":29003,"v":0.01,"n":4,"vw":29001}]},"next_page_token":null}