Histdata

Which years exist for a pair, and in what unit each is served. HistData chunks

5 endpoints502 calls3/5 passing
Get API key
GET/v1/…histdata/coverage
passing · 1.1s1d cache

Try it

Checking your keys…

Parameters

pair

string · query · required

Instrument code as HistData spells it, e.g. XAUUSD, EURUSD, SPXUSD.

timeframe

enum · query · optional

m1 (1-minute bars) or tick. Default m1.

Example response

{"project":"finance:histdata",  "data": {"pair":"XAUUSD","count":18,    "items": [      {"unit":"month","year":2026,        "months": [          1,          2,          3,          4,          5,          6,          7,          8        ]      },      {"unit":"year","year":2025,"months":[]      },      {"unit":"year","year":2024,"months":[]      },      {"unit":"year","year":2023,"months":[]      },      {"unit":"year","year":2022,"months":[]      },      {"unit":"year","year":2021,"months":[]      },      {"unit":"year","year":2020,"months":[]      },      {"unit":"year","year":2019,"months":[]      }    ],"dataset":"coverage","lastYear":2026,"provider":"histdata","firstYear":2009,"timeframe":"m1"  },"timestamp":"2026-08-21T02:23:28Z"}

Errors

  • 401Missing or invalid x-api-key
  • 404Not found or private
  • 429Rate limit or monthly quota reached

Code

const data = await client.run(  "finance:histdata",  "coverage",  { pair: "XAUUSD", timeframe: "m1" });