Error codes
cTrader API error codes
53 decoded error codes for cTrader Open API. Each page gives the exact error text and what it means. 44 of them carry a fix or a next step, and each of those rows is marked Fix recorded. Where the source gives no remedy, the page says so.
Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.
Open API error codes
53 codes
In an error message sent over the Open API connection, not in an HTTP status.
OA_Fix recorded The access token has expired.AUTH_ TOKEN_ EXPIRED (1) UNKNOWN_Fix recorded A generic error.ERROR (1) ACCOUNT_Fix recorded The trading account has not been authorised on this connection.NOT_ AUTHORIZED (2) UNSUPPORTED_Fix recorded The message type is not supported.MESSAGE (2) INVALID_Fix recorded Input values are wrong.REQUEST (3) TIMEOUT_Fix recorded Execution timed out.ERROR (5) ENTITY_Fix recorded The id does not exist.NOT_ FOUND (6) CANT_Fix recorded Connection to the server is lost.ROUTE_ REQUEST (7) FRAME_Fix recorded Message is too large.TOO_ LONG (8) MARKET_Fix recorded Market is closed.CLOSED (9) CONCURRENT_Fix recorded The order is busy, for example still being executed, so the change was not applied.MODIFICATION (10) BLOCKED_Fix recorded Blocked or rate limited.PAYLOAD_ TYPE (11) RET_Fix recorded The trading account no longer exists.NO_ SUCH_ LOGIN (12) ALREADY_Fix recorded Account already authorised on this connection.LOGGED_ IN (14) INCORRECT_Fix recorded The from and to period is too long or invalid.BOUNDARIES (35) RET_Fix recorded The trading account is disabled.ACCOUNT_ DISABLED (64) CONNECTIONS_Fix recorded Your app has too many open connections.LIMIT_ EXCEEDED (67) WORSE_The request would increase the risk on a position that has a guaranteed stop loss, which is not allowed.GSL_ NOT_ ALLOWED (68) SYMBOL_Trading is disabled for the symbol because of a holiday in its schedule.HAS_ HOLIDAY (69) CH_Fix recorded App credentials wrong or app not activated.CLIENT_ AUTH_ FAILURE (101) CH_Fix recorded Command sent before app authorisation.CLIENT_ NOT_ AUTHENTICATED (102) CH_Fix recorded App authorised twice.CLIENT_ ALREADY_ AUTHENTICATED (103) CH_Fix recorded Access token invalid.ACCESS_ TOKEN_ INVALID (104) CH_Fix recorded The trading service is unavailable.SERVER_ NOT_ REACHABLE (105) CH_Fix recorded ctidTraderAccountId not found.CTID_ TRADER_ ACCOUNT_ NOT_ FOUND (106) CH_Fix recorded The client ID is not recognised.OA_ CLIENT_ NOT_ FOUND (107) REQUEST_Fix recorded Request rate limit exceeded (page gives the name with no longer description).FREQUENCY_ EXCEEDED (108) SERVER_Fix recorded The server is in maintenance.IS_ UNDER_ MAINTENANCE (109) CHANNEL_Fix recorded Operations are blocked for this account.IS_ BLOCKED (110) NOT_Fix recorded A subscription to depth, trendbars or similar was requested for a symbol that has no spot subscription.SUBSCRIBED_ TO_ SPOTS (112) ALREADY_Fix recorded You asked for a subscription that is already active.SUBSCRIBED (113) SYMBOL_Fix recorded The symbol does not exist for this account.NOT_ FOUND (114) UNKNOWN_The file gives this code no description of its own, only a note that it is to be merged with SYMBOL_NOT_FOUND (114).SYMBOL (115) NO_Trading cannot be done because no quotes are available.QUOTES (117) NOT_Fix recorded Insufficient margin.ENOUGH_ MONEY (118) MAX_Fix recorded The maximum exposure for this trader, symbol and side is reached.EXPOSURE_ REACHED (119) POSITION_Fix recorded Position id does not exist.NOT_ FOUND (120) ORDER_Fix recorded The order does not exist.NOT_ FOUND (121) POSITION_A request tried to close a position that is not open.NOT_ OPEN (122) POSITION_The position is in a state that does not allow the operation to be performed.LOCKED (123) TOO_Fix recorded The account has hit its limit of open positions and orders.MANY_ POSITIONS (124) TRADING_Fix recorded Volume invalid (cTrader volume is in cents of units).BAD_ VOLUME (125) TRADING_Fix recorded Stop price invalid.BAD_ STOPS (126) TRADING_Fix recorded The price is invalid.BAD_ PRICES (127) TRADING_Fix recorded The stake volume is invalid, for example negative.BAD_ STAKE (128) PROTECTION_Fix recorded Stop loss or take profit is invalid or too close to the market.IS_ TOO_ CLOSE_ TO_ MARKET (129) TRADING_Fix recorded The expiration given for the order is invalid.BAD_ EXPIRATION_ DATE (130) PENDING_The change cannot be applied because the position has an order under execution.EXECUTION (131) TRADING_Fix recorded Symbol not tradable.DISABLED (132) TRADING_Fix recorded The account is read only for your app.NOT_ ALLOWED (133) UNABLE_The order could not be cancelled.TO_ CANCEL_ ORDER (134) UNABLE_The order could not be amended.TO_ AMEND_ ORDER (135) SHORT_Fix recorded Short selling is not allowed for this symbol or account.SELLING_ NOT_ ALLOWED (136)
Written up at length
How to cite this
cTrader API error codes. Broker API Hub, https://openbrokerapi.com/errors/ctrader, newest check .
Where you rely on a single figure, cite the source and the checked date printed beside it as well.