Skip to main content

Errors

The API uses standard HTTP status codes to indicate the success or failure of the API call,The body of the response will be JSON in the following format:

{
"error_code": "INSTRUMENT_NOT_FOUND"
"message": "instrument not exists"
}

List of Error Messages

Error CodeDescription
SYSTEM_ERRORSystem is unavailable, please try again later.
ILLEGAL_PARAMETERParameter error.
INVALID_TOKENInvalid token.
UNSUPPORTED_CATEGORYUnsupported CATEGORY.
UNSUPPORTED_SUB_TYPEUnsupported subscription type.
TOO_MANY_SYMBOLSToo many symbols in a single call.
TOO_MANY_SUBSCRIPTIONToo many quotes pushes.
UNAUTHORIZED_SUB_TYPEUnauthorized subscription type.
INVALID_SYMBOLWrong symbol.
UNSUPPORTED_API_VERSIONUnsupported api version.
UNAUTHORIZED_CATEGORYNo data permission for this CATEGORY.
UNSUPPORTED_TIMESPANUnsupported candlestick type.
UNSUPPORTED_TIMESPANUnsupported candlestick type.
GRPC_SYSTEM_ERRORSystem error.
INTERNAL_ERRORInternal error.
IP_NOT_ALLOWEDIP forbidden access.
REQUEST_TOTAL_COUNT_EXCEEDEDThe developer's interface call quota is insufficient.
TOO_MANY_REQUESTSA large number of requests in a short period of time trigger current limiting.
MISSING_APP_KEYParameter error, missing x-app-key header.
MISSING_SIGNATUREParameter error, missing x-signature header.
MISSING_ALGORITHMParameter error, missing x-signature-algorithm header.
MISSING_VERSIONParameter error, missing x-version header.
MISSING_NONCEParameter error, missing x-nonce header.
MISSING_TIMESTAMPParameter error, missing x-timestamp header.
SIGNATURE_ALGORITHM_NOT_SUPPORTEDParameter error, the current signature algorithm only supports HMAC-SHA1.
VERSION_NOT_SUPPORTEDParameter error, the current version only supports 1.0.
ILLEAGAL_TIMESTAMPParameter error, x-timestamp format error.
UNAUTHORIZEDParameter error, app_key not found or app_key has expired.
INCORRECT_SIGNParameter error, signature verification failed.
CLOCK_SKEW_EXCEEDEDRequest rejected, x-timestamp clock offset exceeds maximum limit.
DUPPLICATED_REQUESTRequest denied for repeated requests.
ORDER_NOT_FOUNDNo order record.
DAY_ORDER_NOT_ALLOWED_AFT_CORE_TIMEAfter 4 PM, “Day Order” is no longer valid.
SYMBOL_CAN_NOT_SELL_SHORTThis stock is not supported for short selling.
DAY_BUYING_POWER_INSUFFICIENTInsufficient buying power.
CAN_NOT_TRADING_FOR_NON_TRADING_HOURSThe current order type does not support pre-market and after-hours trading.
CAN_NOT_TRADING_FOR_FIXGW_NOT_READYThe current order type does not support pre-market and after-hours trading.
STOP_PRICE_MUST_BE_LESS_THAN_MARKET_PRICEStop price must be less than market price for a sell order.
STOP_PRICE_MUST_BE_GREAT_THAN_MARKET_PRICEStop price must be greater than market price for buy order.
ACCOUNT_NOT_FOUNDNo account found.
MARGIN_ACCOUNT_CAN_NOT_SELL_SHORT_FOR_LT_2KShort selling is only available for margin accounts with a minimum Net Account Value of $2,000.
ORDER_AMOUNT_EXCEED_LIMITThe order amount has exceeded the limit.
MARGIN_NOT_ALLOW_FOR_RESTRICTEDShort selling is currently forbidden.
CAN_NOT_TRADE_FOR_ACCOUNT_BE_RESTRICTEDOrder submission was unsuccessful as your account is restricted from stocks&ETFs trading.
CAN_NOT_OPEN_POSITION_FOR_ACCOUNTOrder submission was unsuccessful as your account is only eligible for closing positions for stocks&ETFs.
CAN_NOT_CREATE_A_OPEN_ORDERNot tradable. You can close out your existing positions, but you cannot open any new positions for this security.
NO_SUCH_TICKERNo quotes available.
TRADE_ORDER_NOT_EXISTOrder does not exist.
CANT_GET_A_BROKER_FOR_TRADING_INDICATORThis symbol is temporarily unavailable for trading.
OTC_TICKER_NOT_SUPPORT_X_PExtended hours trading is not available for OTC market stock.
NO_SUCH_ORDEROrder does not exist.
TRAILING_STOP_NOT_IN_TRADING_TIMETrailing stop orders cannot be placed now.
EXIST_CONTINUOUS_BATCH_ORDERPlease do not submit repeated close position request.
CLOSE_ORDER_QUANTITY_MUST_LESS_THAN_POSITIONWhen closing a position, the quantity of the order should be less than the quantity of the holding position.
CLOSE_ORDER_SIDE_MUST_NOT_SAME_WITH_POSITIONWhen the position is closed, the direction of the existing position is the same as the direction of the order.
CLOSE_ORDER_SIDE_MUST_NOT_SAME_WITH_EXISTED_ORDERYou have existing open orders to close this position. Please do not submit repeated request.
TRAILING_PERCENTAGE_MUST_BE_LESS_THAN_100The trail percentage must be no greater than 100%.
CAN_NOT_REVERSE_POSITION_CUR_POSITION_IS_0You have no positions to reverse for this stock.
CAN_NOT_REVERSE_POSITION_EXISTED_SAME_SIDE_ORDERThere is an open order to close your position of this stock. Please cancel related open orders before requesting reverse position for this stock.
CAN_NOT_REVERSE_POSITION_SIDE_SAME_WITH_POSITIONThe order cannot be placed since short orders are not supported.
TRAILING_STOP_TIF_ONLY_SUPPORT_DAYGood Til Canceled (GTC) orders are not supported.
ORDER_TYPE_NOT_ALLOWMarket orders are temporarily unavailable to open any new positions.
FRACT_NOT_ALLOWFractional trading is not supported.
ACCOUNT_NOT_ALLOW_TRADE_CS_DENYYour account has been restricted from trading.
ACCOUNT_NOT_ALLOW_TRADE_CS_COThis stock currently can only be liquidated, but you cannot open any new positions.
ORDER_SIDE_NOT_MATCH_NO_POSITIONYou have no positions to sell for this security.
ORDER_SIDE_NOT_MATCH_WITH_POSITION_QUANTITYThe order quantity should be less than or equal to your current position of this security.
ORDER_SIDE_NOT_MATCH_WITH_POSITION_ORDER_QUANTITYThere are pending sell orders.
ORDER_SIDE_NOT_MATCH_WITH_BUY_ORDERThere are pending buy orders.
ORDER_SIDE_NOT_MATCH_WITH_SELL_ORDERThis order is contradictory to your current position or existing pending orders of this security.
TICKER_STATUS_NOT_ALLOW_TREADE_CSThis stock is currently halted by exchanges, only limit orders are allowed to open positions right now.
TICKER_STATUS_NOT_ALLOW_TREADE_OPTThe underlying stock is currently halted by exchanges, order to open positions is not available right now, please try again later.
NO_POSITION_CASH_ACCOUNT_CAN_NOT_SELLCash account doesn't currently support short selling options.
NO_POSITION_ORDER_SIDE_NOT_MATCH_EXPECT_SELLYou have no positions to sell for this security.
ORDER_BEFORE_BROKER_TRADING_TIMEThe current order type does not support pre-market.
ORDER_AFTER_BROKER_TRADING_TIMEThe current order type does not support post-market.
STOP_LOSS_PRICE_MUST_BELOW_A_PRICEThe stop price of the stop-loss order should be lower than the price you entered.
STOP_LOSS_PRICE_MUST_ABOVE_A_PRICEThe stop price of the stop-loss order should be higher than the price you entered.
STOP_PROFIT_PRICE_MUST_BELOW_A_PRICEThe limit price of the take-profit order should be lower than the price you entered.
STOP_PROFIT_PRICE_MUST_ABOVE_A_PRICEThe limit price of the take-profit order should be higher than the price you entered.
STOP_LOSS_PROFIT_PRICE_INTERNAL_ERRORThe price of the take-profit or stop-loss order does not meet the specified minimum price interval.
STOP_LOSS_PROFIT_MASTER_SIDE_MUST_BE_BUYIt must be a buy order for stop loss profit.
CAN_NOT_TRADING_OTC_FOR_ACCOUNTYour account has been restricted from trading otc.
OPERATOR_CAN_NOT_BE_NULLThe operator can not be null.
ACCOUNT_NOT_FOUND_FROM_APEXYour account is not eligible for fractional shares trading.
STOCK_ORDER_PRICE_PRECISION_EXCEEDPrice increment should be 0.01 when price is equal or greater than 0.9999.
STOP_PRICE_MUST_BE_LESS_THAN_LIMIT_PRICEStop price must be less than limit price.
STOP_PRICE_MUST_BE_LESS_THAN_MARKET_PRICE_PStop price must be less than pre-close price for a sell order during pre-market hours.
STOP_PRICE_MUST_BE_LESS_THAN_MARKET_PRICE_LStop price must be less than close price for a sell order during post-market hours.
STOP_PRICE_MUST_BE_GREAT_THAN_MARKET_PRICE_PStop price must be greater than pre-close price for a buy order during pre-market hours.
STOP_PRICE_MUST_BE_GREAT_THAN_MARKET_PRICE_LStop price must be greater than close price for a buy order during post-market hours.
STOP_PRICE_MUST_BE_GREATER_THAN_LIMIT_PRICEStop price must be greater than limit price for a sell order.
DAY_ORDER_NOT_ALLOWED_AFT_CORE_TIME_LIMITRegular trading hours has ended and you placed day orders.
DAY_ORDER_NOT_ALLOWED_AFT_CORE_TIME_OTHERSRegular trading hours has ended. Market orders / stop orders / stop limit orders are not supported during extended hours.
DAY_ORDER_NOT_ALLOWED_AFT_CORE_TIME_MARKETRegular trading hours has ended. Market orders are not supported during extended hours for regular trading days.
DAY_ORDER_NOT_ALLOWED_AFT_CORE_TIME_STOP_LIMITRegular trading hours has ended. Stop orders/stop limit orders are not supported during extended hours.
EXIST_SAME_ORDERRepeated order request.
EXIST_PENDING_REPLACE_ORDEROrder can not be modified before previous modification completes.
EXIST_PENDING_CANCEL_ORDEROrder can not be canceled before previous cancellation completes.
ERROR_NEW_ORDERFailed to place order.
ERROR_NEW_DAY_ORDER_AFTER_CORE_TIMEDay order is not allowed after market closed.
ORDER_CANT_NOT_BE_REPLACEOrder can not be modified.
ORDER_REPLACE_ERRORFailed to modify order.
ERROR_CANCEL_ORDERFailed to cancel order.
UNFILLED_SELL_ORDER_IN_CASH_ACCOUNTThere is an existing open sell order and short selling is not supported for a cash account.
UNFILLED_SELL_ORDER_IN_MARGIN_ACCOUNTThere is an existing open sell order. This stock is currently not supported for short selling.
CASH_ACCOUNT_CAN_NOT_SELL_SHORTYou can’t sell more shares than you hold.
CASH_ACCOUNT_CAN_NOT_SHORT_OPTIONCash account doesn't currently support short selling options.
MARGIN_NOT_ALLOW_FOR_RESTRICTED_WITH_UNFILLED_ORDERThere is an existing open sell order. This account is currently not supported for short selling.
MARGIN_ACCOUNT_CAN_NOT_SELL_SHORT_FOR_LT_2K_WITH_UNFILLED_ORDERThere is an existing open sell order. Your account has less than $2000 and is not available for short selling.
LIMIT_PRICE_DISMATCH_TICK_PRICE_PILOTLimit rder price is not in tick size increments.
STOP_PRICE_DISMATCH_TICK_PRICE_PILOTStop order price is not in tick size increments.
DAY_BUYING_POWER_INSUFFICIENT_O_PInsufficient buying power. Your buying power must be 15% greater than the estimated amount of the purchase to place a market order in the pre-market.
DAY_BUYING_POWER_INSUFFICIENT_MInsufficient buying power. Your buying power must be 2% greater than the estimated amount of the purchase to place a market order during regular market hours.
DAY_BUYING_POWER_INSUFFICIENT_NOT_SUPPORT_CREDITInsufficient buying power due to the high risk of low-priced stocks and leveraged ETFs.
MAINTENANCE_REQ_INSUFFICIENTFailed to place order due to insufficient margin excess.
CAN_NOT_TRADING_FOR_SOD_NOT_READYNetwork error, please try again later.
CAN_NOT_TRADING_FOR_FIXGW_NOT_READY_LIMITThe current order type does not support pre-market and after-hours trading.
ERROR_STOP_LOSS_QUANTITYThe number of take-profit orders and the number of stop-loss orders must be the same.
COMBO_ORDER_MUST_HAVE_MASTERPrimary order is required for this advanced order.
ERROR_COMBO_ORDER_SIZEYou can add up to 6 subsidiary orders.
CANT_PLACE_COMBO_ORDERYou have an open order of this stock now.
CNAT_PLACE_NORMAL_ORDERYou have an open advanced order of this stock now.
CANT_USE_UNSETTLE_FUNDS_FOR_COMBO_ORDERInsufficient settled funds, cash account can only use settled funds to place advanced orders.
CANT_TRADE_FOR_PRICE_BELOW_001Opening position is not allowed when stock price is below $0.01.
CANT_TRADE_FOR_PRICE_BETWEEN_001_AND_0099A minimum order size of 1000 is required when stock price is between $0.01 and $0.099.
CANT_TRADE_FOR_PRICE_BETWEEN_0099_AND_0999A minimum order size of 100 is required when stock price is between $0.1 and $0.999.
STOP_ORDER_NOT_SUPPORT_EXTEND_HOURExtended hours trading is not available for Stop Loss/Take Profit order.
REPLACE_QTY_CANT_LESS_THAN_STRIKE_QTYThe modified quantity must be greater than filled quantity.
CANT_REVERSE_POSITION_FOR_EXIST_PSLPYou have an open stop-loss/take-profit order already.
CANT_REVERSE_POSITION_FOR_EXIST_MSLPTotal shares of open closing orders exceed shares of current position.
STOP_LOSS_PROFIT_SIDE_MUST_BE_SAMEThe order side of take-profit order and stop-loss order should be identical.
STOP_LOSS_PROFIT_SIDE_CANT_SAME_WITH_POSITIONThe order side of take-profit and stop-loss orders should be opposite to the open position.
STOP_LOSS_PROFIT_TIF_MUST_BE_SAMEThe take-profit order and stop-loss order should have the same Time-in-force.
CANT_PLACE_PSLP_WITHOUT_POSITIONStop-loss/take-profit order cannot be placed because you don't have a position for this stock.
CANT_REVERSE_POSITION_BY_PSLPThe quantity of take-profit and stop-loss orders should be smaller than the open position.
ORDER_QUANTITY_EXCEED_LIMITOrder quantity must be below 200,000.
TRADE_WEBULL_REQUEST_PROCESSINGRequest is being processed.
TRADE_COMMON_DUPLICATE_REQUESTPlease do not submit request repeatedly.
TRADE_LMTPRICE_GT_AUXPRICEThe limit price should be higher than the stop price.
TRADE_LMTPRICE_LT_AUXPRICEThe limit price should be lower than the stop price.
TRAILING_PRICE_MUST_BE_POSITIVEThe trailing price should be higher than $0.
GTX_NOT_SUPPORT_MARKETThis order type does not support pre-market and after-market trading.
CAN_NOT_MODIFY_ORDER_TYPEThe order type cannot be modified.