The standard envelope every BackQuant API response uses
Every response from the BackQuant API uses the same envelope structure,
whether the request succeeds or fails. Always check the success
field before reading data or error.
When a request succeeds, success is true and the result is in
data. The meta block carries everything you need to know about the
provenance and freshness of the data.
When a request fails, success is false and the reason is in
error. The meta block keeps the same shape so logging code doesn’t
have to special-case errors.
The response payload. Present when success is true. The shape
varies by endpoint — see the API reference for
each endpoint’s schema. The top 10 most-traffic endpoints have
Pydantic-typed schemas in the OpenAPI spec; the rest are documented
with examples.
The 10 most-traffic v2 endpoints have full Pydantic response schemas in
the OpenAPI spec. Use them with codegen tools (openapi-python-client,
openapi-typescript-codegen, etc.) to get typed client SDKs: