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 SPACEDEX 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.
© 2018–2026 fexwave All rights reserved
Risk Warning

Cryptocurrencies and their derivatives are innovative financial products with great volatility and high investment risks. Although fexwave 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 fexwave 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 fexwave Services provided by fexwave, you agree that you have read, understood and accepted all of the terms and conditions stipulated in fexwave's Terms of Use as well as our Privacy Policy.

Trading by copying or replicating the trades of other traders involves a high level of risks, even when copying or replicating the top-performing traders. Past performance of a fexwave community member is not a reliable indicator of future performance. Content on fexwave's trading platform is generated by members of its community and does not contain advice or recommendations by or on behalf of fexwave.