REST API Error Codes
In case of some error during using API you will receive response with following format.
When you try to cancel order but it has beed executed already
When you try to update margin mode, but did't pass 'mode' parameter
All Error Codes:
UNKNOWN
An unknown error occurred while processing the request.An unknown error occurred while processing the request.
DISCONNECTED
Internal error; unable to process your request. Please try again.
UNAUTHORIZED
You are not authorized to execute this request.
Invalid eth user address.
Eth and Cosmos user addresses doesn't mapped.
FORBIDDEN
You don't have access to execute this request.
TOO_MANY_REQUESTS
Too many requests queued.
Way too many requests; User/IP will be banned next %s minutes. Please use the web socket for live updates to avoid bans.
TIMEOUT
Timeout waiting for response from backend server. Send status unknown; execution status unknown.
UNEXPECTED_RESPONSE
An unexpected response was received from the message bus. Execution status unknown.
UNSUPPORTED_OPERATION
This operation is not supported.
INVALID_SIGNATURE
Signature for this request is not valid.
SERVICE_SHUTTING_DOWN
This service is no longer available. Please try again.
INVALID_TIMESTAMP_OUTSIDE_RECV_WINDOW
Timestamp for this request is outside of the recvWindow.
NEW_ORDER_REJECTED
The maximum precision of order's price is 6.
The minimum order's notional in 50 USDT.
The maximum available to buy is %s USDT.
The maximum available to sell is %s USDT.
The maximum allowed market order amount for %s is %s.
Order book is empty.
The buy price of limit orders should be less or equal to (1 + cap ratio ) * current Mark Price of the contract. The sell price of limit orders should be higher or equal to (1 - floor ratio) * current Mark price of the contract
The maximum market order's notional is %s %s.
CANCEL_REJECTED
Order has been executed. All orders from the batch are executed
UPDATE_LEVERAGE_REJECTED
User has open orders
Too high leverage ratio: liquidation condition.
Leverage is smaller than permitted: insufficient margin balance.
This positions already with that leverage: no need to change leverage.
Too high leverage ratio: insufficient position notional.
WITHDRAW_REJECTED
Balance is insufficient.
NO_SUCH_ORDER
There is no such order.
USER_IN_LIQUIDATION
User in liquidation mode now.
MAX_OPEN_ORDER_EXCEEDED
Reach max open order limit.
UPDATE_LOCKED_BALANCE_REJECTED
Too high locked balance: insufficient margin balance.
Too low locked balance: liquidation condition.
Add margin only support for isolated position.
Cannot add position margin: position is 0.
UPDATE_MARGIN_MODE_REJECTED
This positions already in that margin mode: no need to change margin type.
Margin type cannot be changed if there exists position.
Margin type cannot be changed if there exists open orders.
ORDER_ID_OR_CLIENT_ORDER_ID_MUST_BE_SENT
Either 'orderId' or 'clientOrderId' must be sent.
BAD_REQUEST
Custom message with details of request
BAD_PRECISION
Precision is over the maximum defined for this asset.
NOT_FOUND
No handler.
UNSUPPORTED_MEDIA_TYPE
Unsupported media type.
METHOD_NOT_ALLOWED
Method not allowed.
Wrong parameter %s
Last updated