Skip to content

Trade Error Code

These error codes are returned by the trading API when an order fails to pass validation or is blocked due to account, market, or business rule constraints. Use these codes to understand and debug order rejection reasons.


Error Code Reference

All API responses follow a standard JSON error format for non-2xx status codes:

json
{
	"code": 11030103,
	"message": "The product code is invalid or unrecognized."
}
FieldTypeDescription
codeintBusiness-specific error code (non-zero indicates error)
messagestringHuman-readable error message (English)

Parameter Validation Errors

CodeMessageDescription
11030101Invalid Parameter BSFlagThe buy/sell flag is invalid.
11030102Invalid Parameter TypeThe order type is not supported or incorrectly formatted.
11030103Invalid Parameter ProductCodeThe product code is invalid or unrecognized.
11030104Invalid Parameter PriceThe order price is incorrectly formatted or out of range.
11030105Invalid Parameter QtyThe quantity is invalid.
11030111Invalid Parameter TriggerPriceThe trigger price for a stop order is invalid.
11030301Invalid Parameter MarketThe market is invalid.
11030304Invalid Parameter RatioThe ratio is invalid.
11030106Qty and Amount cannot be zeroThe quantity and amount cannot be zero.
11030107Qty must be greater than or equal to 1The quantity must be greater than or equal to 1.
11030110Qty must be greater than 1The quantity must be greater than 1.
11030108Oddlot Order Qty Range Between 0 andThe oddlot order quantity range must be between 0 and {value}.
11030109Oddlot Order Qty AccuracyThe oddlot order quantity accuracy {value}.
11030201OrderNo, Reference cannot be empty at the same timeThe orderNo and reference cannot be empty at the same time.
11030203OrderNo, Reference is an invalid order numberThe orderNo and reference is invalid.
11030501OrderNo cannot be emptyThe order no cannot be empty.
11030601StartTime cannot be emptyThe start time cannot be empty.
11030203EndTime cannot be emptyThe end time cannot be empty.

Order Time Restrictions

CodeMessageDescription
11030124This product is prohibited from buying and sellingThis product is prohibited from buying and selling.
11030125MarketOrder is not availableThe market order is not available.
11030202Frequent cancellation of ordersToo many order cancellations.
11030204Order status cannot be cancelledThe order status cannot be cancelled.

Account Permission Errors

CodeMessageDescription
11030117Account Not Permitted to Buy in This MarketThe account is not authorized to buy products in this market.
11030118Account Not Permitted to BuyBuy operations are restricted for this account.
11030122Account Not Permitted to Sell in This MarketThe account is not authorized to sell products in this market.
11030123Account Not Permitted to SellSell operations are restricted for this account.
11030135Account Not Permitted to Trade This ProductThe account is not authorized to buy this product.

Market Validation Errors

CodeMessageDescription
11030113Market ClosedThe market is currently not open for trading.
11030114Security Type Trading LimitTrading for this type of security is restricted.
11030115Order type is prohibited at the current timeThe order type is prohibited at the current time.
11030116Product Type Limited Day TradingProduct type limited day trading.
11030119Product prohibited from tradingProduct prohibited from trading.
11030120Product Type RestrictionsProduct type restrictions.
11030121Order type is prohibited at the current timeThe order type is prohibited at the current time.
11030126Self-Match PreventionSelf-trading is not allowed for this order.
11030130Product SuspendedThe trading of the product is suspended.
11030131Product Not TradableThe product is not open for trading at this time.
11030132Product Not FoundNo product was found for the given product code.

Business Rule Validation Errors

CodeMessageDescription
11030127Insufficient Sellable QuantityThere is not enough quantity available to sell.
11030129Insufficient FundsThe account does not have enough available funds for the order.