Error Codes
The error JSON payload:
{
"code":-1121,
"msg":"Invalid symbol."
}
Errors consist of two parts: an error code and a message. Codes are universal, but messages can vary.
10xx - General Server or Network issues
-1000 UNKNOWN
- An unknown error occurred while processing the request.
- An unknown error occurred while processing the request.[%s]
-1001 DISCONNECTED
- Internal error; unable to process your request. Please try again.
-1002 UNAUTHORIZED
- You are not authorized to execute this request.
-1003 TOO_MANY_REQUESTS
- Too many requests queued.
- Too much request weight used; current limit is %s request weight per %s. Please use WebSocket Streams for live updates to avoid polling the API.
- Way too much request weight used; IP banned until %s. Please use WebSocket Streams for live updates to avoid bans.
-1004 SERVER_BUSY
- Server is busy, please wait and try again
-1006 UNEXPECTED_RESP
- An unexpected response was received from the message bus. Execution status unknown.
-1007 TIMEOUT
- Timeout waiting for response from backend server. Send status unknown; execution status unknown.
-1008 SERVER_BUSY
- Spot server is currently overloaded with other requests. Please try again in a few minutes.
-1014 UNKNOWN_ORDER_COMPOSITION
- Unsupported order combination.
-1015 TOO_MANY_ORDERS
- Too many new orders.
- Too many new orders; current limit is %s orders per %s.
-1016 SERVICE_SHUTTING_DOWN
- This service is no longer available.
-1020 UNSUPPORTED_OPERATION
- This operation is not supported.
-1021 INVALID_TIMESTAMP
- Timestamp for this request is outside of the recvWindow.
- Timestamp for this request was 1000ms ahead of the server's time.
-1022 INVALID_SIGNATURE
- Signature for this request is not valid.
-1099 Not found, authenticated, or authorized
- This replaces error code -1999
11xx - 2xxx Request issues
-1100 ILLEGAL_CHARS
- Illegal characters found in a parameter.
- Illegal characters found in a parameter. %s
- Illegal characters found in parameter
%s
; legal range is%s
.
-1101 TOO_MANY_PARAMETERS
- Too many parameters sent for this endpoint.
- Too many parameters; expected
%s
and received%s
. - Duplicate values for a parameter detected.
-1102 MANDATORY_PARAM_EMPTY_OR_MALFORMED
- A mandatory parameter was not sent, was empty/null, or malformed.
- Mandatory parameter
%s
was not sent, was empty/null, or malformed. - Param
%s
or%s
must be sent, but both were empty/null!
-1103 UNKNOWN_PARAM
- An unknown parameter was sent.
-1104 UNREAD_PARAMETERS
- Not all sent parameters were read.
- Not all sent parameters were read; read
%s
parameter(s) but was sent%s
.
-1105 PARAM_EMPTY
- A parameter was empty.
- Parameter
%s
was empty.
-1106 PARAM_NOT_REQUIRED
- A parameter was sent when not required.
- Parameter
%s
sent when not required.
-1111 BAD_PRECISION
- Precision is over the maximum defined for this asset.
-1112 NO_DEPTH
- No orders on book for symbol.
-1114 TIF_NOT_REQUIRED
- TimeInForce parameter sent when not required.
-1115 INVALID_TIF
- Invalid timeInForce.
-1116 INVALID_ORDER_TYPE
- Invalid orderType.
-1117 INVALID_SIDE
- Invalid side.
-1118 EMPTY_NEW_CL_ORD_ID
- New client order ID was empty.
-1119 EMPTY_ORG_CL_ORD_ID
- Original client order ID was empty.
-1120 BAD_INTERVAL
- Invalid interval.
-1121 BAD_SYMBOL
- Invalid symbol.
-1125 INVALID_LISTEN_KEY
- This listenKey does not exist.
-1127 MORE_THAN_XX_HOURS
- Lookup interval is too big.
- More than %s hours between startTime and endTime.
-1128 OPTIONAL_PARAMS_BAD_COMBO
- Combination of optional parameters invalid.
-1130 INVALID_PARAMETER
- Invalid data sent for a parameter.
- Data sent for parameter
%s
is not valid.
-1131 BAD_RECV_WINDOW
- recvWindow must be less than 60000
-1134 BAD_STRATEGY_TYPE
strategyType
was less than 1000000.
-1145 INVALID_CANCEL_RESTRICTIONS
cancelRestrictions
has to be eitherONLY_NEW
orONLY_PARTIALLY_FILLED
.
-1151 DUPLICATE_SYMBOLS
- Symbol is present multiple times in the list.
-2010 NEW_ORDER_REJECTED
- NEW_ORDER_REJECTED
-2011 CANCEL_REJECTED
- CANCEL_REJECTED
-2013 NO_SUCH_ORDER
- Order does not exist.
-2014 BAD_API_KEY_FMT
- API-key format invalid.
-2015 REJECTED_MBX_KEY
- Invalid API-key, IP, or permissions for action.
-2016 NO_TRADING_WINDOW
- No trading window could be found for the symbol. Try ticker/24hrs instead.
-2026 ORDER_ARCHIVED
- Order was canceled or expired with no executed qty over 90 days ago and has been archived.
3xxx-5xxx SAPI-specific issues
-3000 INNER_FAILURE
- Internal server error.
-3001 NEED_ENABLE_2FA
- Please enable 2FA first.
-3002 ASSET_DEFICIENCY
- We don't have this asset.
-3003 NO_OPENED_MARGIN_ACCOUNT
- Margin account does not exist.
-3004 TRADE_NOT_ALLOWED
- Trade not allowed.
-3005 TRANSFER_OUT_NOT_ALLOWED
- Transferring out not allowed.
-3006 EXCEED_MAX_BORROWABLE
- Your borrow amount has exceed maximum borrow amount.
-3007 HAS_PENDING_TRANSACTION
- You have pending transaction, please try again later.
-3008 BORROW_NOT_ALLOWED
- Borrow not allowed.
-3009 ASSET_NOT_MORTGAGEABLE
- This asset are not allowed to transfer into margin account currently.
-3010 REPAY_NOT_ALLOWED
- Repay not allowed.
-3011 BAD_DATE_RANGE
- Your input date is invalid.
-3012 ASSET_ADMIN_BAN_BORROW
- Borrow is banned for this asset.
-3013 LT_MIN_BORROWABLE
- Borrow amount less than minimum borrow amount.
-3014 ACCOUNT_BAN_BORROW
- Borrow is banned for this account.
-3015 REPAY_EXCEED_LIABILITY
- Repay amount exceeds borrow amount.
-3016 LT_MIN_REPAY
- Repay amount less than minimum repay amount.
-3017 ASSET_ADMIN_BAN_MORTGAGE
- This asset are not allowed to transfer into margin account currently.
-3018 ACCOUNT_BAN_MORTGAGE
- Transferring in has been banned for this account.
-3019 ACCOUNT_BAN_ROLLOUT
- Transferring out has been banned for this account.
-3020 EXCEED_MAX_ROLLOUT
- Transfer out amount exceeds max amount.
-3021 PAIR_ADMIN_BAN_TRADE
- Margin account are not allowed to trade this trading pair.
-3022 ACCOUNT_BAN_TRADE
- You account's trading is banned.
-3023 WARNING_MARGIN_LEVEL
- You can't transfer out/place order under current margin level.
-3024 FEW_LIABILITY_LEFT
- The unpaid debt is too small after this repayment.
-3025 INVALID_EFFECTIVE_TIME
- Your input date is invalid.
-3026 VALIDATION_FAILED
- Your input param is invalid.
-3027 NOT_VALID_MARGIN_ASSET
- Not a valid margin asset.
-3028 NOT_VALID_MARGIN_PAIR
- Not a valid margin pair.
-3029 TRANSFER_FAILED
- Transfer failed.
-3036 ACCOUNT_BAN_REPAY
- This account is not allowed to repay.
-3037 PNL_CLEARING
- PNL is clearing. Wait a second.
-3038 LISTEN_KEY_NOT_FOUND
- Listen key not found.
-3041 BALANCE_NOT_CLEARED
- Balance is not enough
-3042 PRICE_INDEX_NOT_FOUND
- PriceIndex not available for this margin pair.
-3043 TRANSFER_IN_NOT_ALLOWED
- Transferring in not allowed.
-3044 SYSTEM_BUSY
- System busy.
-3045 SYSTEM
- The system doesn't have enough asset now.
-3999 NOT_WHITELIST_USER
- This function is only available for invited users.
-4001 CAPITAL_INVALID
- Invalid operation.
-4002 CAPITAL_IG
- Invalid get.
-4003 CAPITAL_IEV
- Your input email is invalid.
-4004 CAPITAL_UA
- You don't login or auth.
-4005 CAPAITAL_TOO_MANY_REQUEST
- Too many new requests.
-4006 CAPITAL_ONLY_SUPPORT_PRIMARY_ACCOUNT
- Support main account only.
-4007 CAPITAL_ADDRESS_VERIFICATION_NOT_PASS
- Address validation is not passed.
-4008 CAPITAL_ADDRESS_TAG_VERIFICATION_NOT_PASS
- Address tag validation is not passed.
-4010 CAPITAL_WHITELIST_EMAIL_CONFIRM
- White list mail has been confirmed.
-4011 CAPITAL_WHITELIST_EMAIL_EXPIRED
- White list mail is invalid.
-4012 CAPITAL_WHITELIST_CLOSE
- White list is not opened.
-4013 CAPITAL_WITHDRAW_2FA_VERIFY
- 2FA is not opened.
-4014 CAPITAL_WITHDRAW_LOGIN_DELAY
- Withdraw is not allowed within 2 min login.
-4015 CAPITAL_WITHDRAW_RESTRICTED_MINUTE
- Withdraw is limited.
-4016 CAPITAL_WITHDRAW_RESTRICTED_PASSWORD
- Within 24 hours after password modification, withdrawal is prohibited.
-4017 CAPITAL_WITHDRAW_RESTRICTED_UNBIND_2FA
- Within 24 hours after the release of 2FA, withdrawal is prohibited.
-4018 CAPITAL_WITHDRAW_ASSET_NOT_EXIST
- We don't have this asset.
-4019 CAPITAL_WITHDRAW_ASSET_PROHIBIT
- Current asset is not open for withdrawal.
-4021 CAPITAL_WITHDRAW_AMOUNT_MULTIPLE
- Asset withdrawal must be an %s multiple of %s.
-4022 CAPITAL_WITHDRAW_MIN_AMOUNT
- Not less than the minimum pick-up quantity %s.
-4023 CAPITAL_WITHDRAW_MAX_AMOUNT
- Within 24 hours, the withdrawal exceeds the maximum amount.
-4024 CAPITAL_WITHDRAW_USER_NO_ASSET
- You don't have this asset.
-4025 CAPITAL_WITHDRAW_USER_ASSET_LESS_THAN_ZERO
- The number of hold asset is less than zero.
-4026 CAPITAL_WITHDRAW_USER_ASSET_NOT_ENOUGH
- You have insufficient balance.
-4027 CAPITAL_WITHDRAW_GET_TRAN_ID_FAILURE
- Failed to obtain tranId.
-4028 CAPITAL_WITHDRAW_MORE_THAN_FEE
- The amount of withdrawal must be greater than the Commission.
-4029 CAPITAL_WITHDRAW_NOT_EXIST
- The withdrawal record does not exist.
-4030 CAPITAL_WITHDRAW_CONFIRM_SUCCESS
- Confirmation of successful asset withdrawal.
-4031 CAPITAL_WITHDRAW_CANCEL_FAILURE
- Cancellation failed.
-4032 CAPITAL_WITHDRAW_CHECKSUM_VERIFY_FAILURE
- Withdraw verification exception.
-4033 CAPITAL_WITHDRAW_ILLEGAL_ADDRESS
- Illegal address.
-4034 CAPITAL_WITHDRAW_ADDRESS_CHEAT
- The address is suspected of fake.
-4035 CAPITAL_WITHDRAW_NOT_WHITE_ADDRESS
- This address is not on the whitelist. Please join and try again.
-4036 CAPITAL_WITHDRAW_NEW_ADDRESS
- The new address needs to be withdrawn in {0} hours.
-4037 CAPITAL_WITHDRAW_RESEND_EMAIL_FAIL
- Re-sending Mail failed.
-4038 CAPITAL_WITHDRAW_RESEND_EMAIL_TIME_OUT
- Please try again in 5 minutes.
-4039 CAPITAL_USER_EMPTY
- The user does not exist.
-4040 CAPITAL_NO_CHARGE
- This address not charged.
-4041 CAPITAL_MINUTE_TOO_SMALL
- Please try again in one minute.
-4042 CAPITAL_CHARGE_NOT_RESET
- This asset cannot get deposit address again.
-4043 CAPITAL_ADDRESS_TOO_MUCH
- More than 100 recharge addresses were used in 24 hours.
-4044 CAPITAL_BLACKLIST_COUNTRY_GET_ADDRESS
- This is a blacklist country.
-4045 CAPITAL_GET_ASSET_ERROR
- Failure to acquire assets.
-4046 CAPITAL_AGREEMENT_NOT_CONFIRMED
- Agreement not confirmed.
-4047 CAPITAL_DATE_INTERVAL_LIMIT
- Time interval must be within 0-90 days
-4060 CAPITAL_WITHDRAW_USER_ASSET_LOCK_DEPOSIT
- As your deposit has not reached the required block confirmations, we have temporarily locked {0} asset
-5001 ASSET_DRIBBLET_CONVERT_SWITCH_OFF
- Don't allow transfer to micro assets.
-5002 ASSET_ASSET_NOT_ENOUGH
- You have insufficient balance.
-5003 ASSET_USER_HAVE_NO_ASSET
- You don't have this asset.
-5004 USER_OUT_OF_TRANSFER_FLOAT
- The residual balances have exceeded 0.001BTC, Please re-choose.
- The residual balances of %s have exceeded 0.001BTC, Please re-choose.
-5005 USER_ASSET_AMOUNT_IS_TOO_LOW
- The residual balances of the BTC is too low
- The residual balances of %s is too low, Please re-choose.
-5006 USER_CAN_NOT_REQUEST_IN_24_HOURS
- Only transfer once in 24 hours.
-5007 AMOUNT_OVER_ZERO
- Quantity must be greater than zero.
-5008 ASSET_WITHDRAW_WITHDRAWING_NOT_ENOUGH
- Insufficient amount of returnable assets.
-5009 PRODUCT_NOT_EXIST
- Product does not exist.
-5010 TRANSFER_FAIL
- Asset transfer fail.
-5011 FUTURE_ACCT_NOT_EXIST
- future account not exists.
-5012 TRANSFER_PENDING
- Asset transfer is in pending.
-5021 PARENT_SUB_HAVE_NO_RELATION
- This parent sub have no relation
-5012 FUTURE_ACCT_OR_SUBRELATION_NOT_EXIST
- future account or sub relation not exists.
6XXX - Savings Issues
-6001 DAILY_PRODUCT_NOT_EXIST
- Daily product not exists.
-6003 DAILY_PRODUCT_NOT_ACCESSIBLE
- Product not exist or you don't have permission
-6004 DAILY_PRODUCT_NOT_PURCHASABLE
- Product not in purchase status
-6005 DAILY_LOWER_THAN_MIN_PURCHASE_LIMIT
- Smaller than min purchase limit
-6006 DAILY_REDEEM_AMOUNT_ERROR
- Redeem amount error