SiftingIO icon

SiftingIO

Consume the SiftingIO financial-data API

Historical → Get Commodities Bars

AI-generated

Summary

Fetches historical OHLCV bars for a precious-metals commodity symbol over a selected time window. Choose a bar interval and optionally limit the number of results; enable Return All to follow cursor-based pagination.

Inputs

  • Symbol (required) — Instrument symbol, such as XAUUSD.
  • Start (required) — Window start as YYYY-MM-DD or RFC3339.
  • End — Window end as YYYY-MM-DD or RFC3339; defaults to now.
  • Interval — Bar size: 1m, 5m, 15m, 30m, or 1h. Defaults to 1h.
  • Return All — Defaults to false. When false, Limit controls the maximum results (1–2000, default 100). When true, the node follows next-cursor pagination.

Output shape

A list of bar records, one n8n item per record.

The response's data array is split into individual items. With Return All enabled, records are collected across cursor-paginated requests.

Examples

Example 1: Fetch all hourly gold bars for 2025

Set Symbol to XAUUSD, Start to 2025-01-01, Interval to 1h, and Return All to true; leave End blank to use now.

Links

Discussion