API Reference

Error Codes

List of error codes

👍

Note: "%s" is placeholder

ERROR CODEHTTP Status CodeERROR MESSAGEDESCRIPTION
0000200successSuccess request
0001400Required field '%s' missing or invalidRequired field '%s' missing or invalid. E.g. Required field quantity missing or invalid
0001400Incorrect signatureThe server is not able to valid your signature request. Please check your signature whether it have the correct signing.
0003400Rate limit exceededRate limit exceed per configuration. Please manage the number of your request
0102400Invalid APIKeyThere was an issue validating your API Key permission. Please check your API Key permission
0103400APIKey expiredAPI-key has expired. Please login to Account management console to renew the API key
0104400accountId is not allowedThe accountId defined is not permissible
0201400Instrument not foundThe instrument defined cannot be located
0202400Invalid IPOur server detected the IP addresses submitted for the API request does not match API key whitelisted IP address
0206400Unsupported order typeInvalid order type being sent to the server
0207400Invalid priceInvalid price being sent to the server
0209400Invalid price precisionThe precision price is over the maximum allowed for this asset
0210400Price outside of allowed rangePrice of the order below minPrice or exceeds maxPrice range. Please check exchangeInfo
0211400Order not foundOur server not able to locate the orderId defined
0401400Insufficient assetThere is insufficient balance to submit the order
0402400Invalid assetInvalid asset being specified
-1000 400An unknown error occurred while processing the requestAn issue generated by our server
-1001 400Internal errorUnable to process your request. Please try again
-1002 400Unauthorized operationServer is not able to validate your API Key. Please ensure you have the valid API Key to the corresponding environment
-1004 400Bad requestThere was an issue with to process your request. Please check your parameters or values are valid
-1005 400No permissionIt appears there is insufficient trading permission. Please check your permission
-1006 400Execution status unknownAn unexpected response was received from the message bus
-1007 400Timeout waiting for response from serverTimeout waiting for response from backend server. Send status unknown; execution status unknown
-1014 400Unsupported order combinationThe order combination specified is not supported
-1015 400Too many new orders, current limit is %s orders per %sReach the rate limit .Please slow down your request speed.
Too many new orders.
-1020 400Unsupported operationUser operation is not supported
-1021 400Timestamp for this request is outside of the recvWindowTimestamp for this request is outside of the recvWindow

Please check the difference between your local time and server time
-1024400Duplicate requestDuplicate request received
-1101400Feature has been offlineFeature has been offline, please check with API team for further details
-1115400Invalid timeInForceInvalid time in force being sent
-1117400Invalid order sideInvalid side being sent
-1119400Order failed due to excessive deviation from the mark priceOrder rejected due to a significant price deviation from the mark price, implemented to protect investors. This applies to futures trading.
-1123400Invalid client order idInvalid client order ID being sent
-1124400Invalid priceInvalid price being sent
-1126400Invalid quantityInvalid quantity being sent
-1127400Insufficient quantity for closing positions. The quantity for the order to close postion is higher position hold
-1128400Cancellation quantity exceeds the limit
-1129400Invalid parameters, quantity and amount are not allowed to be sent at the same time.The combination of quantity and amount is not allowed to be submitted at the same time
-1130400Illegal parameter '%s'Invalid data sent for a parameter. E.g. "Illegal parameter 'symbol'"
-1132400Order price greater than the maximumOrder price exceeds maxPrice. Check ExchangeInfo
-1133400Order price lower than the minimumOrder price below the threshold minPrice. Check ExchangeInfo
-1135400Order quantity greater than the maximumOrder quantity exceeds the maxQty. Check ExchangeInfo
-1136400Order quantity lower than the minimumOrder quantity below threshold minQty. Check ExchangeInfo
-1138400Order has been partially cancelledOrder has been partially cancelled
-1137400Order quantity precision too largeOrder quantity precision is too large
-1139400Order has been filledUnable to fulfill request as order has been filled
-1140400Order amount lower than the minimumThe transaction amount is below the threshold minAmount. Check ExchangeInfo
-1141400Duplicate orderThe server have detected an existing clientOrderId sent before
-1142400Order has been cancelledUnable to fulfill rquest as order has been canceled
-1143400Order not found on order bookUnable to locate orderbook
-1144400Order has been lockedOrder has been locked
-1145400Cancellation on this order type not supportedThis order type does not support cancellation
-1146400Order creation timeoutNot able to create the order and timed out
-1147400Order cancellation timeoutNot able to cancel the order and timed out
-1148400Order amount precision too largeMarket Cash Amount precision is too long
-1149400Order creation failedOrder creation failed
-1150400Order cancellation failedOrder cancellation failed
-1151400The trading pair is not open yetThe trading is not yet listed for trading
-1152400User does not existUnable to find user
-1153400Invalid price typeInvalid price type being sent
-1154400Invalid position sideInvalid side being sent
-1155400The trading pair is not available for api tradingAPI trading is suspended for API trading
-1156400Limit maker order rejected: Improper price may cause immediate fill.Creation of limit maker order failed as the order execute immediately. For HashKey Global only.
-1157400Modify futures margin failedModify futures margin failed
-1158400Reduce margin is forbiddenReduce margin is forbidden
-1159400Finance account already existsFinance account already exists
-1160400Account does not existAccount does not exist
-1161400Balance transfer failedTransfer internal funds failed
-1162400Unsupport contract addressContract address submitted is not valid
-1163400Illegal withdrawal addressWithdraw address is not valid
-1164400Withdraw failedWithdraw failed, check if the withdrawal amount meets the minimum withdrawal amount
-1165400Withdrawal amount cannot be nullWithdrawal amount needs to be more than 0
-1166400Withdrawal amount exceeds the daily limitWithdrawal amount exceeded the daily limit allowed
-1167400Withdrawal amount less than the minimumWithdrawal amount less than the min withdraw amount limit
-1168400Illegal withdrawal amountWithdrawal amount characters are not valid
-1169400Withdraw not allowedWithdrawal is currently suspended
-1170400Deposit not allowedDeposit is currently suspended
-1171400Withdrawal address not in whitelistWithdrawal address has not yet been whitelisted
-1172400Invalid from account idThe fromAccountId is invalid
-1173400Invalid to account idThe toAccountId is invalid
-1174400Transfer not allowed between the same accountThe fromAccount should not be equal toAccount
-1175400Invalid fiat deposit statusThe fiat deposit status submitted is invalid
-1176400Invalid fiat withdrawal statusThe fiat withdrawal status submitted is invalid
-1177400Invalid fiat order typeThe fiat order type submitted is invalid
-1178400Brokerage account does not existBrokerage account does not exist
-1179400Address owner is not trueAddress owner is not true
-1181400System errorSystem error
-1193400Order creation count exceeds the limitOrder count have exceeded the amount allowed
-1194400Market order creation forbiddenCreation of market order is forbidden
-1195400Market order long position cannot exceed %s above the market priceMarket order long position cannot exceed %s above the market price
-1196400Market order short position cannot be below %s of the market priceMarket order short position cannot be below %s of the market price
-1200400Order buy quantity too smallBuy limit quantity below the threshold minQty. Check ExchangeInfo
-1201400Order buy quantity too largeBuy limit quantity exceeds maxQty. Check ExchangeInfo
-1202400Order sell quantity too smallSell limit quantity below the threshold minQty. Check ExchangeInfo
-1203400Order sell quantity too largeSell limit quantity exceeds the maxQty. Check ExchangeInfo
-1204400From account must be a main accountTransfer fromAccountId needs to be a main account
-1205400Account not authorizedAccount is not authorised
-1206400Order amount greater than the maximumThe transaction amount is below the threshold maxAmount. Check ExchangeInfo
-1207400The status of deposit is invalidThe status of deposit submitted is invalid
-1208400The orderType of fiat is invalidThe status of orderType is not valid
-1209400The status of withdraw is invalidThe status of withdraw is not valid
-2001400Platform is yet to open tradingPlatform is yet to open trading
-2002400The number of open orders exceeds the limit 300The number of open orders exceeds the limit 300
-2003400Position size cannot meet target leveragePosition size cannot meet target leverage
-2004400Adjust leverage failAdjust leverage fail
-2005400Adjust leverage timeoutAdjust leverage timeout
-2010400Limit maker order rejected: Improper price may cause immediate fill.New order request was rejected. Usually this is due to new LIMIT_MAKER order not able to be maker, our system will auto reject the order. For HashKey Hong Kong only
-2011400Order cancellation rejectedCancel request was rejected
-2016400API key creation exceeds the limitThe number of API key created have exceeded the limit
-2017400Open orders exceeds the limit of the trading pairThe number of open orders have exceeded the limit for the trading pair
-2018400Trade user creation exceeds the limitThe number of trade user created have exceeded the limit
-2019400Trader and omnibus user not allowed to login appThe trader and omnibus user is not allowed to login to the app
-2020400Not allowed to trade this trading pairNot allowed to trade this trading pair
-2021400Not allowed to trade this trading pairNot allowed to trade this trading pair
-2022400Order batch size exceeds the limitThe number of orders in batchOrders request exceeds its limit
-2023400Need to pass KYC verificationNeed to pass KYC verification in order to use API trading
-2024400Fiat account does not existFiat account ID defined does not exist
-2025400Custody account not existCustody account ID defined does not exist
-2026400Invalid typeThe type defined is invalid
-2027400Exceed maximum time range of 30 daysThe startTime and endTime defined for Fund statement request exceeds the 30 days limit
-2028400The search is limited to data within the last one monthThe search is limited to data within the last one month
-2029400The search is limited to data within the last three monthsThe search is limited to data within the last three months
-2030400Insufficient marginInsufficient margin
-2031400Leverage reduction is not supported in Isolated Margin Mode with open positionsLeverage reduction is not supported in Isolated Margin Mode with open positions
-2032400After the transaction, your %s position will account for %s of the total position, which poses concentration risk. Do you want to continue with the transaction?After the transaction, your %s position will account for %s of the total position, which poses concentration risk. Do you want to continue with the transaction?
-2033400Order creation failed. Please verify if the order parameters comply with the trading rulesOrder creation failed. Please verify if the order parameters comply with the trading rules
-2034400Trade account holding limit is zeroTrade account holding limit is zero
-2035400The sub account has been frozen and cannot transferThe sub account has been frozen and cannot transfer
-2036400We do not support queries for records exceeding 30 daysWe do not support queries for records exceeding 30 days
-2037400Position and order data errorPosition and order data error
-2038400Insufficient marginInsufficient margin
-2039400Leverage reduction is not supported in Isolated Margin Mode with open positionsLeverage reduction is not supported in Isolated Margin Mode with open positions
-2040400There is a request being processed. Please try again laterThere is a request being processed. Please try again later
-2041400Token does not existToken does not exist
-2042400You have passed the trade limit, please pay attention to the risksYou have passed the trade limit, please pay attention to the risks
-2043400Maximum allowed leverage reached, please lower your leverageMaximum allowed leverage reached, please lower your leverage
-2044400This order price is unreasonable to exceed (or be lower than) the liquidation price. This order is not acceptedThis order price is unreasonable to exceed (or be lower than) the liquidation price. This order is not accepted
-2045400Price too low, please order again!Price too low, please order again!
-2046400Price too high, please order again!Price too high, please order again!
-2048400Exceed the maximum number of conditional orders of %sExceed the maximum number of conditional orders of %s
-2049400Create stop order buy price too bigCreate stop order buy price too big
-2050400Create stop order sell price too smallCreate stop order sell price too small
-2051400Create order rejectedCreate order rejected
-2052400Create stop profit-loss plan order rejectCreate stop profit-loss plan order reject
-2053400Position not enoughPosition not enough
-2054400Invalid long stop profit priceInvalid long stop profit price
-2055400Invalid long stop loss priceInvalid long stop loss price
-2056400Invalid short stop profit priceInvalid short stop profit price
-2057400Invalid short stop loss priceInvalid short stop loss price
-3117400Invalid permissionInvalid permission is detected. E.g. APIKey does not have the accountID permission to query the balance of the account
-3143400According to KYC and risk assessment, your trading account has exceeded the limit. Please update your information promptly if there are any changesAccording to KYC and risk assessment, your trading account has exceeded the limit. Please update your information promptly if there are any changes
-3144400Currently, your trading account has exceeded its limit and is temporarily unable to perform transfersThe trading account have exceeds its limit capacity. We have temporarily suspended your transfer
-3145400Please DO NOT submit request too frequentlyWe have detected the rate of your API request have been submitted too frequently. Please manage your API request.
-4000400Invalid bank account numberInvalid bank account number
-4001400Invalid assetInvalid asset
-4002400Withdrawal amount less than Minimum Withdrawal AmountWithdrawal amount less than Minimum Withdrawal Amount
-4003400Insufficient BalanceInsufficient Balance
-4004400Invalid bank account numberInvalid bank account number
-4005400Assets are not listedAssets are not listed
-4006400KYC is not certifiedKYC is not certified
-4007400Withdrawal channels are not supportedWithdrawal channels are not supported
-4008400This currency does not support this customer typeThis currency does not support this customer type
-4009400No withdrawal permissionNo withdrawal permission
-4010400Withdrawals on the same day exceed the maximum limit for a single dayWithdrawals on the same day exceed the maximum limit for a single day
-4011400System errorSystem error
-4012400Parameter errorParameter error
-4013400Withdraw repeatlyWithdraw repeatly