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:
List of error messages
Error Code | Description |
---|---|
SYSTEM_ERROR | System is unavailable, please try again later. |
ILLEGAL_PARAMETER | Parameter error. |
INVALID_TOKEN | Invalid token. |
TOO_MANY_SYMBOLS | Too many symbols in a single call. |
INVALID_SYMBOL | Wrong symbol. |
UNSUPPORTED_API_VERSION | Unsupported api version. |
UNAUTHORIZED_CATEGORY | No data permission for this CATEGORY. |
INTERNAL_ERROR | Internal error. |
IP_NOT_ALLOWED | IP forbidden access. |
REQUEST_TOTAL_COUNT_EXCEEDED | The developer's interface call quota is insufficient. |
TOO_MANY_REQUESTS | A large number of requests in a short period of time trigger current limiting. |
MISSING_APP_KEY | Parameter error, missing x-app-key header. |
MISSING_SIGNATURE | Parameter error, missing x-signature header. |
MISSING_ALGORITHM | Parameter error, missing x-signature-algorithm header. |
MISSING_VERSION | Parameter error, missing x-version header. |
MISSING_NONCE | Parameter error, missing x-nonce header. |
MISSING_TIMESTAMP | Parameter error, missing x-timestamp header. |
SIGNATURE_ALGORITHM_NOT_SUPPORTED | Parameter error, the current signature algorithm only supports HMAC-SHA1. |
VERSION_NOT_SUPPORTED | Parameter error, the current version only supports 1.0. |
ILLEAGAL_TIMESTAMP | Parameter error, x-timestamp format error. |
UNAUTHORIZED | Parameter error, app_key not found or app_key has expired. |
INCORRECT_SIGN | Parameter error, signature verification failed. |
CLOCK_SKEW_EXCEEDED | Request rejected, x-timestamp clock offset exceeds maximum limit. |
DUPPLICATED_REQUEST | Request denied for repeated requests. |
ORDER_NOT_FOUND | No order record. |
ACCOUNT_IS_DENY | Your account is currently unavailable for trading. |
ACCOUNT_IS_DENY_BY_ACT | Your account is currently unavailable for trading due to ACAT out. |
ACCOUNT_IS_DENY_BY_ANC | Your account is currently unavailable for trading due to account type change. |
ACCOUNT_IS_DENY_BY_BCL | Your account is currently unavailable for trading due to Reg-T rule violation. |
ACCOUNT_IS_DENY_BY_CLS | Your account is currently unavailable for trading due to account closed. |
ACCOUNT_IS_DENY_BY_EIC | Your account is currently unavailable for trading due to expired ID card. |
ACCOUNT_NOT_FOUND | No account found. |
ACCOUNT_NOT_OPEN_ETF | ETF trading is not available yet. Please apply first. |
ACCOUNT_NOT_OPEN_SPECIFIC | The account does not have a special tax account. |
ACCOUNT_ONLY_CLOSE | The current account is only available for closing your position. |
ACCOUNT_ROUTE_ERROR | Routing issues |
AVAILABLE_FUNDS_NOT_ENOUGH | Insufficient initial margin. |
BUY_NOT_ALLOW_FOR_HAVING_SHORT_OPEN_ORDER | There are short pending orders for the current stock,and reverse trading is not allowed. |
BUY_QTY_EXCEED_AVAILABLE_QTY | The quantity of buy to close exceeds the available quantity of buy to close. |
CAN_SELL_QTY_NOT_ENOUGH | Insufficient number of positions available for sale. |
CHANNEL_REJECT | Rejected by upstream execution broker. |
EQUITY_SELL_LIMIT_PRICE_NOT_GT_STOP_PRICE_ONE_PERCENT | The limit price cannot be greater than the 100.1% of the stop price |
EQUITY_SELL_STOP_PRICE_NOT_GT_TRADE_PRICE_ONE_PERCENT | The stop price cannot be greater than the 100.1% of the current market price |
ETF_ONLY_CLOSE_FOR_ACCOUNT_CAR_INVALID | Your CAR certification has expired, and you cannot open new ETF positions now. |
FEE_GREATER_THAN_ORDER_AMOUNT_ERROR | You cannot place this order because the Estimated Fee Amount is equal or over the Order Amount, please adjust the quantity. |
FIX_ROUTE_ERROR | Routing issues |
FRACTION_CANNOT_CANCEL | A fractional share order cannot be canceled. |
FRACTION_CANNOT_CLOSE_SHORT_POSITION | Fractional shares trading is not available for closing a short position. |
FRACTION_CANNOT_MODIFY | A fractional share order cannot be modified. |
FRACTION_NO_ALLOW_AT_THIS_MOMENT | You cannot place fractional share orders at this moment. Fractional shares trading is only available during regular trading hours: 9:30 a.m. - 4:00 p.m. ET (Business Day). |
FRACTION_ONLY_ALLOW_MARKET | Only market orders are available for fractional shares trading. |
HK_FILL_ORDER_NOT_SUPPORT_MODIFY | Your order cannot be modified now because it has been partially filled. |
INNER_SYSTEM_ERROR | Inner System Error |
LONG_POSITION_SHOULD_CLOSE_BEFORE_SELL_SHORT | Since you currently have long positions in the stock, please close the position before short selling. |
NON_FRACTION_CANNOT_MODIFY_TO_FRACTION | It is not allowed to change a normal order into a fractional order. |
NO_TRADING_DAY | Non-trading day. |
NO_TRADING_TIME | Non-trading time. |
ORDER_AMOUNT_EXCEED_LIMIT | The order amount has exceeded the limit. |
ORDER_BUYING_POWER_NOT_ENOUGH | Insufficient Buying Power. |
ORDER_CANNOT_OPERATE | The current status cannot be modified. |
ORDER_EXCHANGE_RATE_WRONG | Exchange rate error. |
ORDER_LMT_PRICE_QTY_STEP_1 | The latest limit order is greater than 1 and the quantity should be greater than 1. |
ORDER_LMT_PRICE_QTY_STEP_100 | The latest limit order ranges from 0.1~0.999 and the quantity should be greater than 100. |
ORDER_LMT_PRICE_QTY_STEP_1000 | The latest limit order ranges from 0.01~0.099 and the quantity should be greater than 1000. |
ORDER_MKT_LMT_PRICE_TOO_LOW | Last price of the order cannot be lower than $ 0.01. |
ORDER_MKT_MODIFY_ONLY_ALLOW_IN_CORE_TIME | Market order can only be modified during normal trade hours. |
ORDER_MKT_ONLY_ALLOW_IN_CORE_TIME | Market order can only be placed during normal trade hours. |
ORDER_MKT_PRICE_QTY_STEP_1 | The last market order is greater than 1 and the quantity should be greater than 1. |
ORDER_MKT_PRICE_QTY_STEP_1000 | The latest market order ranges from 0.01~0.099 and the quantity should be greater than 1000. |
ORDER_MODIFY_NOT_SUPPORT_IN_PRE_POST_TIME | Order cannot be modified in extended hours. |
ORDER_MODIFY_TO_MKT_ONLY_ALLOW_IN_CORE_TIME | Can only be changed to a market order during normal trade hours. |
ORDER_NOT_ACCEPT_ALL | No modification is allowed for the current time period. |
ORDER_NOT_SUPPORT_IN_PRE_POST_TIME | Order cannot be placed in extended hours. |
ORDER_ONLY_ACCEPT_ALO_ELO | Only At-auction Limit and Enhanced Limit order can be modified and cancelled. |
ORDER_ONLY_ACCEPT_AUO_ALO | Only At-auction and At-auction Limit Order are available for the current time period. |
ORDER_ONLY_ACCEPT_AUO_ALO_ELO | Only At-auction Market and Limit Order, Enhanced Limit order can be modified and cancelled. |
ORDER_ONLY_ACCEPT_ELO | Only Enhanced limit orders are accepted for the current time period. |
ORDER_PENDING_CANCEL | The order is being canceled and cannot be modified. |
ORDER_PENDING_MODIFY | The order is being changed and cannot be modified. |
ORDER_PENDING_SUBMIT | The order is being submitted and cannot be modified. |
ORDER_PRICE_ILLEGAL | Invalid Order Price |
ORDER_QTY_EXCEED_LIMIT | The order quantity has exceeded the limit. |
POSITION_TRANSFER_BUSY_ERROR | The system is busy. Please try again later. |
QUOTE_ASK_PRICE_IS_NULL | Market Order is temporarily unavailable as the Filled Price may significantly differ from the current Bid/Ask. Alternatively, you may submit a Limit Order. |
QUOTE_NOT_FOUND | No quotes available |
REPEAT_REQUEST | Please don't tap repetitively. |
SECURITY_HAS_CHANGED | The tickerID has been changed. |
SELL_QTY_EXCEED_AVAILABLE_QTY | The quantity of sell to close exceeds the available quantity of sell to close. |
SHORT_NOT_ALLOW_FOR_HAVING_BUY_OPEN_ORDER | There are buy pending orders for the current stock,and reverse trading is not allowed. |
SHORT_SELL_NOT_SUPPORT | Not available for short selling. |
STOP_SHOULD_GT_CLOSE_FOR_BUY_IN_NON_TRADING_DAY | Stop price should be higher than closed price of last trade day. |
STOP_SHOULD_GT_CLOSE_FOR_LMT_BUY_IN_POST_TIME | The Stop Order price should be higher than yesterday's close price if you buy Stop Order during after-market hours. |
STOP_SHOULD_GT_CLOSE_FOR_LMT_BUY_IN_PRE_TIME | The Stop Order price should be higher than yesterday‘s close price during the pre-market hours. |
STOP_SHOULD_GT_LIMIT_FOR_LMT_SELL | The Stop Order price should be greater than the Limit Order price for Sell of the Stop Limit Order. |
STOP_SHOULD_GT_TRADE_FOR_LMT_BUY | Stop price must be greater than market price for buy order. |
STOP_SHOULD_GT_TRADE_FOR_LMT_BUY_IN_CORE_TIME | The Stop Order price should be higher than the last price if you buy Stop Order during regular trading hours. |
STOP_SHOULD_LT_CLOSE_FOR_LMT_SELL_IN_POST_TIME | The Stop Order price should be lower than yesterday's close price if you sell Stop Order during after-market hours. |
STOP_SHOULD_LT_CLOSE_FOR_LMT_SELL_IN_PRE_TIME | Sell the Stop order during the pre-market hours; the stop price should be lower than yesterday's close price. |
STOP_SHOULD_LT_CLOSE_FOR_SELL_IN_NON_TRADING_DAY | Stop price should be lower than closed price of last trade day. |
STOP_SHOULD_LT_LIMIT_FOR_LMT_BUY | The Stop Order price should be lower than the Limit Order for Buy of the stop Limit Order. |
STOP_SHOULD_LT_TRADE_FOR_LMT_SELL | Stop price must be less than market price for a sell order |
STOP_SHOULD_LT_TRADE_FOR_LMT_SELL_IN_CORE_TIME | The Stop Order price should be lower than the last price if you sell Stop Order during regular trading hours. |
TICKER_CANNOT_OPEN_BY_FRACTION | This security is not eligible for buy in fractional shares. |
TICKER_IS_DENY | The current security is not available. |
TICKER_IS_HALT | Market order is unavailable during a trading halt or suspension. |
TICKER_NOT_FOUND | No Security Matched |
TICKER_ONLY_CLOSE | The symbol is currently restricted from opening new positions. |
TRAILING_PRICE_MUST_LESS_THAN_MARKET_PRICE | The trail amount must be a minimum of $0.01 and no greater than the current price. |
CANCELLED_BY_CA | Order canceled due to corporate action |
IPO_NO_TRADE_CAN_ONLY_PLACE_LMT | Only limit order is available for now. |
LIMIT_PRICE_ABOVE_LIMIT_UP | The limit price cannot be higher than the day's highest price. |
LIMIT_PRICE_BELOW_LIMIT_DOWN | The limit price cannot be lower than the day's lowest price. |
ORDER_QTY_NOT_MATCH_LOT_SIZE | Order quantity needs to be whole lot. |