{"__v":13,"_id":"578d5366d9c55c2000d4f2dd","category":{"__v":8,"_id":"56940bc2d8c04d1700e5adb6","pages":["56940ce773f48f0d0075c9df","56941dd246b943190027fdf8","5694325e5f1c951900644d0a","569443761005590d0062cacc","5694450e46b943190027fe45","569511bcfe18811700c9bf59","56951873dcaf0d1700cb86a3","56951a76caa32519009c40f4"],"project":"563cc7119799fb0d00047685","version":"563cc7119799fb0d00047688","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-01-11T20:08:34.666Z","from_sync":false,"order":4,"slug":"orders","title":"Orders"},"parentDoc":null,"project":"563cc7119799fb0d00047685","user":"569574eccaa32519009c4202","version":{"__v":16,"_id":"563cc7119799fb0d00047688","project":"563cc7119799fb0d00047685","createdAt":"2015-11-06T15:28:17.683Z","releaseDate":"2015-11-06T15:28:17.683Z","categories":["563cc7129799fb0d00047689","566f37f37ffa002300c3cd5b","56914e9bd47b020d002225ac","5692b19ffe72e00d00e4f0a8","56940bc2d8c04d1700e5adb6","56940bc83e9d080d00f064f0","56951b2dfcb1032d0089df7a","569522aecaa32519009c410c","569523ce562335190016da97","569523fddcaf0d1700cb86bf","56980e4a8560a60d00e2c3c3","569921a41693520d002e1305","5699323b7465970d00650b82","569e6cc4fbee990d0072d927","56a2768a0aefae0d00b7fe66","5862e862b8b7fa23009665b7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Model T","version_clean":"1.0.0","version":"1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-18T22:08:38.785Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":true,"order":7,"body":"| Error Code | Description |\n|-----|-----|\n|`0103`|Cannot BUY, instrument is CLOSE_POSITIONS_ONLY.\n|`0105`|No existing position, cannot SELL SHORT.\n|`0202`|Specified orderQty is invalid.\n|`0300`|New orders rejected 4:00PM ET to 4:15PM ET.\n|`0400`|Account CLOSED.\n|`0401`|Account PENDING.\n|`0402`|Cannot BUY, Account CLOSE_POSITIONS_ONLY.\n|`0403`|Account invalid, null.\n|`0404`|Account invalid.\n|`0405`|MKT NOS Order accountType not LIVE as required.\n|`0501`|Fractional component specified greater than allowed orderSizeStep.\n|`0502`|Fractional qty not supported.\n|`0504`|Fractional qty not supported for LIMIT orders.\n|`0506`|Sell order < $1.00, but not liquidating a position.\n|`0601`|Quantity and cash amount both not specified, invalid.\n|`0602`|Quantity and cash amount both specified, ambiguous.\n|`0603`|Money specified too small for any fractional part of security.\n|`0604`|Money specified less than one dollar USD.\n|`0605`|Limit price specified must be greater than $0.01 (pennies).\n|`0606`|Stop price specified must be greater than $0.01 (pennies).\n|`0607`|Insufficient funds.\n|`0608`|Cash amount specified cannot exceed 2 decimals.  Must be rounded to nearest penny.\n|`0609`|Quantity null or zero.\n|`0610`|Margin account cannot BUY insufficient funds. (not margin call)  //  has cash, just not enough to cover trade\n|`0611`|Margin account cannot BUY because account is in HOUSE MARGIN CALL state.\n|`0612`|Margin account cannot BUY because existing resting orders will place account in HOUSE MARGIN CALL state.\n|`0613`|Margin account cannot BUY because account is in EXCHANGE MARGIN CALL state.\n|`0614`|Margin account cannot BUY because equity in account < 50% of holdings. (not margin call)\n|`0615`|Margin account cannot BUY because effective money = 0. (not margin call)\"\n|`0616`|Margin account Cannot BUY unless account has a minimum of $2,000 cash.\n|`0617`|Margin account cannot BUY insufficient funds. Instrument leverage requirement rule.\n|`0701`|User invalid, null.\n|`0702`|User invalid.","excerpt":"Only displays if the order is rejected.  Error codes will be displayed in the `ordRejReason` field when using the [Order Status (Market Order)](doc:get_market), [Order Status (Stop Order)](doc:get_stop), [Order Status (Limit Order)](doc:get-limit-order) and the `transactions.updatedReason` field when using the [Account Blotter](doc:account-blotter) request.","slug":"common-order-gateway-error-codes","type":"fn","title":"Common Order Gateway Error Codes"}

Common Order Gateway Error Codes

Only displays if the order is rejected. Error codes will be displayed in the `ordRejReason` field when using the [Order Status (Market Order)](doc:get_market), [Order Status (Stop Order)](doc:get_stop), [Order Status (Limit Order)](doc:get-limit-order) and the `transactions.updatedReason` field when using the [Account Blotter](doc:account-blotter) request.

| Error Code | Description | |-----|-----| |`0103`|Cannot BUY, instrument is CLOSE_POSITIONS_ONLY. |`0105`|No existing position, cannot SELL SHORT. |`0202`|Specified orderQty is invalid. |`0300`|New orders rejected 4:00PM ET to 4:15PM ET. |`0400`|Account CLOSED. |`0401`|Account PENDING. |`0402`|Cannot BUY, Account CLOSE_POSITIONS_ONLY. |`0403`|Account invalid, null. |`0404`|Account invalid. |`0405`|MKT NOS Order accountType not LIVE as required. |`0501`|Fractional component specified greater than allowed orderSizeStep. |`0502`|Fractional qty not supported. |`0504`|Fractional qty not supported for LIMIT orders. |`0506`|Sell order < $1.00, but not liquidating a position. |`0601`|Quantity and cash amount both not specified, invalid. |`0602`|Quantity and cash amount both specified, ambiguous. |`0603`|Money specified too small for any fractional part of security. |`0604`|Money specified less than one dollar USD. |`0605`|Limit price specified must be greater than $0.01 (pennies). |`0606`|Stop price specified must be greater than $0.01 (pennies). |`0607`|Insufficient funds. |`0608`|Cash amount specified cannot exceed 2 decimals. Must be rounded to nearest penny. |`0609`|Quantity null or zero. |`0610`|Margin account cannot BUY insufficient funds. (not margin call) // has cash, just not enough to cover trade |`0611`|Margin account cannot BUY because account is in HOUSE MARGIN CALL state. |`0612`|Margin account cannot BUY because existing resting orders will place account in HOUSE MARGIN CALL state. |`0613`|Margin account cannot BUY because account is in EXCHANGE MARGIN CALL state. |`0614`|Margin account cannot BUY because equity in account < 50% of holdings. (not margin call) |`0615`|Margin account cannot BUY because effective money = 0. (not margin call)" |`0616`|Margin account Cannot BUY unless account has a minimum of $2,000 cash. |`0617`|Margin account cannot BUY insufficient funds. Instrument leverage requirement rule. |`0701`|User invalid, null. |`0702`|User invalid.