Capital.com is one of the most used CFD brokers in Europe, the UK and the Middle East, and it has its own trading platform with a public API. From today TraderWAI connects to it in beta, on every plan, including Free.
You could already use a Capital.com account through MetaTrader 4 (Trader plan). Now you can connect the Capital.com platform itself directly, with no MetaTrader and at no extra cost.
What your AI can do on Capital.com
- Read your account: balance, equity, available funds and open positions.
- Analyse before acting: charts and candles for forex, gold, indices, oil and crypto, and the live Capital.com price for each instrument.
- Place orders with protection: market, limit or stop orders with their stop loss and take profit in the same request.
- Manage what is open: move the stop (for example to breakeven) or the target, change or cancel pending orders, and close positions.
- Track results: entry, exit, how it closed (stop, target or manually), profit or loss and R of every trade, in your dashboard and per AI.
Every order waits for your authorization, unless you turn on auto-execution for that symbol. Your risk limits apply to every order, whichever AI sends it.
How to connect it
First, create an API key in Capital.com:
- Turn on two-factor authentication (Settings → Security). Capital.com requires it to create keys.
- Go to Settings → API integrations → Generate new key, give it a name (for example TraderWAI) and choose a password for the key.
- Copy the key: it is shown only once.
Then, in the TraderWAI dashboard, go to Settings → Broker accounts → Add account → Capital.com and enter the key, the password you chose for it and the email you use to log in to Capital.com. Choose Demo or Live to match the account you want to use.
You can also ask your AI to do it: «Connect my Capital.com account».
Good to know
- Sizes are in units, as in the Capital.com app, not in lots: 1,000 units of EUR/USD are 0.01 lots, 1 unit of gold is one ounce and 1 unit of US100 is 1 per point. Your AI knows it, and when you size by risk it calculates the units for you.
- No partial closes through the API: Capital.com closes the whole position. To take part of the profit, your AI can explain the alternatives.
- Hedging mode: on accounts without it (the default), an order in the opposite direction reduces your open position instead of opening another one. Your AI warns you before doing it.
- Capital.com keys always allow trading (there are no read-only keys). You can pause or delete the key any time in Capital.com.
Why beta
We have tested it against Capital.com's real API: login, accounts, more than 7,600 instruments, prices, size rules, orders and history. It is new, so we call it beta while more traders use it. If anything does not work as expected, tell us and we will fix it.
Some requests to start
- «What is the balance and open risk of my Capital.com account?»
- «Look at gold on H4 and mark the key levels on the chart.»
- «Buy 1,000 units of EURUSD at market risking 1%, with the stop below the last low.»
- «Move the stop of my gold position to breakeven.»
Is your broker not on the list? You can request it here.
