Skip to main content
Trade API (64)

What do the common error codes mean?

When generating a token:

  • 400 InvalidRequest: a field is missing or wrong, or you asked for scopes the key doesn't have

  • 401 Unauthorized: wrong key ID or secret, or the key was revoked

  • 401 Locked: your account is frozen or locked

  • 403 Forbidden: the key isn't approved for today

  • 429 TooManyRequests: too many token requests, try again after a minute

When calling the API:

  • 401 UNAUTHORIZED: the token is missing, expired or revoked

  • 403 IP_NOT_ALLOWED: the order came from an unregistered IP

  • 403 FORBIDDEN: your key doesn't have permission for this call

  • 404 NOT_FOUND: wrong URL, or your trading account isn't set up yet

  • 400 or 422 VALIDATION_FAILED: something in the request is wrong, and the message says what

  • INVALID_ORDER_STATE: the order can no longer be modified or cancelled

  • ORDER_NOT_FOUND: the order ID doesn't belong to your account

  • 429 RATE_LIMITED: you've hit a rate limit, so wait for the time given in the Retry-After header