Get started
HTTP 422

Date range too wide

A whole-market query may cover at most 366 days, counting both ends, and a trades query one day.

"type": "https://ohlc.io/problems/range-too-wide"

Why it happens

  • A from to to window longer than 366 days without symbols or instrument_ids.
  • from and to on different dates on /v1/trades.

How to fix it

  • Split the window into ranges of 366 days or less, or name symbols.
  • Request trades one date at a time.

All problem types