Get started
HTTP 503

Query time budget exceeded

The request ran past its time budget and was stopped: 10 seconds for a request in all, 3 seconds for any one database statement. Failed requests are refunded. Only the first read of a whole daily history for a smoothed indicator (EMA, RSI, MACD, ATR) may take longer, up to 30 seconds.

"type": "https://ohlc.io/problems/query-timeout"

Why it happens

  • A wide date range, many symbols or a broad filter in one request.
  • A first request for top movers of a session that had no ranking yet: the ranking continues in the background and the response carries Retry-After.

How to fix it

  • When the response carries Retry-After, retry after that many seconds; the data is ready by then.
  • Without Retry-After a retry repeats the same work: narrow the filters, shorten the range or request fewer symbols first.
  • Page with smaller limit values.

All problem types