Error codes
Capital.com API error codes
24 decoded error codes for Capital.com. Each page gives the exact error text and what it means. 23 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.
HTTP 400
17 codes
error.The demo account's balance cap has been reached, so it cannot be topped up further.account. limit. reached error.Fix recorded The account selected for a demo balance top up is not valid.invalid. account error.Fix recorded The account id sent when switching the active account is not valid.invalid. accountId error.Fix recorded The amount in a demo balance top up request is not valid.invalid. amount error.Fix recorded The from parameter of an activity history request is not valid.invalid. from error.Fix recorded A leverage value sent when updating account preferences is not valid.invalid. leverage. value error.Fix recorded The limit parameter of a market navigation request is not valid.invalid. limit error.Fix recorded The resolution of a price history request is not valid.invalid. resolution error.Fix recorded The stop loss value is too high.invalid. stoploss. maxvalue error.Fix recorded Stop loss too close to the price (the minimum is appended to the code).invalid. stoploss. minvalue error.Fix recorded The take profit value is too high.invalid. takeprofit. maxvalue error.Fix recorded The take profit value is too low.invalid. takeprofit. minvalue error.Fix recorded The goodTillDate of a working order is not in the future.not- in- future. goodTillDate error.Fix recorded X-CAP-API-KEY header missing.null. api. key error.Fix recorded The epics parameter was sent empty.null. epic error.Fix recorded The searchTerm parameter was sent empty.null. searchTerm error.Fix recorded The name in a create watchlist request is not an accepted size.size. createwatchlistrequest. name
HTTP 404
5 codes
error.Fix recorded The watchlist id is not valid.invalid. watchlist error.Fix recorded Position or working order not found.not- found. dealId error.Fix recorded No confirmation was found for the deal reference given.not- found. dealReference error.Fix recorded Market not found.not- found. epic error.Fix recorded The watchlist was not found.not- found. watchlist
How to cite this
Capital.com API error codes. Broker API Hub, https://openbrokerapi.com/errors/capital-com, newest check .
Where you rely on a single figure, cite the source and the checked date printed beside it as well.