Errors and Limits
When a request fails, the Quentrade API returns an error object with a relevant HTTP response code and additional information to help identify and resolve the issue.
HTTP Status Codes
Errors generally return a 4xx response code (client error) or 5xx (server error):
Malformed requests (issue is on the sender's side).
Authentication failed. Possible causes: invalid or expired API key, invalid request signature, or request from a non-whitelisted IP address.
Access denied. Two possible causes: (1) the API key does not have the required permission enabled (e.g. BOTS_READ) — check the key's permission settings in your Quentrade account; (2) the operation is not allowed for this resource in its current state (e.g. deal cannot be cancelled or active subscription is required).
Resource not found. The requested endpoint or record ID does not exist.
Request rate limit exceeded. You must slow down requests to avoid IP banning.
IP auto-banned for continuing to send requests after receiving 429 codes.
Internal errors (issue is on Quentrade's side).
Gateway timeout, indicating the API couldn't get a timely response.
Success responses return a 2xx status code.
Attributes
Specific error codes and messages defined for the API.
Localized, extended human-readable description of the error.
Lists fields that did not pass validation with specific constraint messages.
Error Object
When an error occurs, the API returns an error object instead of a data object or array. Error responses have the following payload format:
Rate Limits
General Rules
Our REST API enforces a maximum of 100 requests per minute.
Rate limits for specific endpoints
Important Notice on Rate Limits & IP Bans
After receiving a 429 Too Many Requests status code, you must reduce the frequency of your requests. Repeated violations or failure to slow down after a 429 response may result in an automatic IP ban (HTTP status 418).
IP bans are tracked and increase in duration for repeated violations, ranging from 2 minutes to 3 days.