SiftingIO icon

SiftingIO

Consume the SiftingIO financial-data API

Historical → Get Crypto Bars

AI-generated

Summary

Fetches historical OHLCV bars for a USD-quoted crypto symbol over a selected time window. Choose an interval and either return up to a specified limit or retrieve all available bars across cursor-paginated responses.

Inputs

  • Symbol (required) — Crypto instrument symbol, for example BTCUSD.
  • Start (required) — Window start as YYYY-MM-DD or RFC3339.
  • End — Window end in the same format; defaults to now.
  • Interval — Bar size: 1m, 5m, 15m, 30m, or 1h. Defaults to 1h.
  • Return All — When enabled, follows cursor pagination to retrieve all available results. Defaults to false.
  • Limit — Maximum number of bars when Return All is disabled; defaults to 100 and accepts values from 1 to 5000.

Output shape

A list of bar items, with each item containing one entry from the response's data array.

The operation sends a GET request to the historical crypto bars endpoint. With Return All enabled, it continues while the response provides a next_cursor.

Links

Discussion