CandleStack
← All problem types

Invalid request

One or more parameters of the request are missing or malformed.

Details

  • Status422 Unprocessable Content
  • Typehttps://candlestack.tech/problems/validation

When it happens

  • A required parameter is missing, has the wrong type or is out of its allowed values, e.g. an unknown timeframe or a limit above 100.
  • A time is neither epoch seconds nor an ISO 8601 date or date-time.
  • start is not before end, or the instrument id is not of the form <market>:<symbol>.

What to do

  1. 1Read detail, which names every bad parameter at once, and fix them all before sending the request again.
  2. 2Check the parameters against the API reference at /api/v1/docs.

In the response

  • errorsOne {loc, msg, type} object per bad parameter, e.g. loc ["query", "timeframe"]. Present when the parameters failed validation; a request that is well-formed but contradictory, like start after end, has detail only.