SiftingIO icon

SiftingIO

Consume the SiftingIO financial-data API

Historical → Get Forex Bars

AI-generated

Summary

Fetches historical OHLCV bars for a forex pair using the SiftingIO API. Choose a six-character pair such as EURUSD, set the required start date or timestamp, and optionally set the end, interval, and result limit; enable Return All to follow available cursor pages.

Inputs

  • Pair (required) — Six-character forex pair, for example EURUSD, USDJPY, or GBPUSD.
  • Start (required) — Start of the time window as YYYY-MM-DD or RFC3339; sent as the start query parameter.
  • End — End of the time window as YYYY-MM-DD or RFC3339; sent as the end query parameter. Defaults to now.
  • Interval — Bar bucket size: 1m, 5m, 15m, 30m, or 1h. Defaults to 1h.
  • Return All — When enabled, follows cursor pages while a next cursor is returned. Defaults to false.
  • Limit — Maximum results when Return All is off; defaults to 100, with a UI range of 1–2000.

Output shape

A list of bar items, with each item containing a record from the response data array.

Each bar represents forex OHLCV data at the selected interval; the operation description specifies mid prices. With Return All enabled, results are gathered across cursor pages.

Links

Discussion