API ReferenceGetting StartedErrors & Response Codes

Errors & Response Codes

Error format and common response codes.

A successful request returns HTTP 200 with a JSON body. Any other status carries a JSON error object with a numeric code and a human-readable message.

json
{
  "code": -2010,
  "msg": "Account has insufficient balance for requested action."
}

HTTP status families

StatusMeaning
2XXSuccess
4XXMalformed request or a problem on your side (bad params, auth, balance)
429Rate limit exceeded, slow down
418IP temporarily blocked for ignoring 429s
5XXAn error on the Oimox side. The action's outcome is unknown; do not blindly retry a trade

Common error codes

CodeMessageCause
-1000Unknown errorAn unexpected internal condition
-1021Timestamp outside recvWindowClock drift or a slow request; sync your clock
-1022Invalid signatureThe signature did not match the payload
-1100Illegal characters in parameterA parameter contained invalid characters
-1121Invalid symbolThe symbol does not exist or is not trading
-2010Insufficient balanceNot enough free balance for the order
-2011Unknown orderThe order id or client order id was not found
-2013Order does not existQuerying an order that never existed
-2014Invalid API key formatThe API key header was malformed
-2015Rejected API key, IP, or permissionsKey disabled, IP not allowed, or missing permission
CautionOn a 5XX response the outcome is genuinely unknown. Before retrying a create-order request, query the order by your clientOrderId to see whether it already exists.
Risk Warning

Cryptocurrencies and their derivatives are innovative financial products with great volatility and high investment risks. Although Oimox is committed to providing users with easy-to-use trading tools, trading itself is still a highly sophisticated field. Trading digital assets and their derivatives are subject to high market risk and price volatility and may result in partial or total loss of account funds. You must carefully consider and exercise clear judgment to evaluate your financial situation and the aforementioned risks before using Oimox Services. You shall be responsible for all losses arising therefrom. If necessary, please consult relevant professionals to make informed decisions before investing. By accessing, downloading, using or clicking on “I agree” to accept any Oimox Services provided by Oimox, you agree that you have read, understood and accepted all of the terms and conditions stipulated in Oimox's Terms of Use as well as our Privacy Policy.

© 2024-2026 Oimox. All rights reserved.