CandleStack
← All problem types

Too many candles

The period and timeframe of the request would return more candles than one response may hold.

Details

  • Status422 Unprocessable Content
  • Typehttps://candlestack.tech/problems/too-many-candles

When it happens

  • The number of candles expected for the period at this timeframe is above the limit per request, 50000 by default.

What to do

  1. 1Follow suggestion; it names a larger timeframe that fits, or the latest end that keeps the same timeframe.
  2. 2To get the whole period, split it into several requests of at most maximum candles each.

In the response

  • requestedHow many candles the request would return.
  • maximumThe most candles one request may return (the max_candles of the instrument detail).
  • suggestionWhat to change so the request fits; also at the end of detail.