Compare brokers

Which CFD brokers offer an API for algorithmic trading?

Updated: November 2026Reviewed by the BestBrokers.si editorial team7 min read
AI summary · quick answer

On “Which CFD brokers offer an API for algorithmic trading”: Automation is supported through Expert Advisors, APIs and, at Capital.com, an official open-source MCP integration for AI assistants. Pepperstone allows EAs on MT4/MT5, cTrader Automate (C#) and API access; neither broker publishes AI trading advice. Always test on a demo first.

73.6% of retail CFD accounts lose money with this provider
ⓘ Advertiser disclosure

We may receive compensation from some of the brokers listed, including Pepperstone, Capital.com and Exness. This does not change our published costs, risks or limits. Details

Our top picks

Our #1 pick for the UK

  • Razor spreads from 0.0 pips plus commission, or no-commission Standard
  • MT4, MT5, cTrader and TradingView
  • FCA (FRN 684312)
Visit Pepperstone 73.6% of retail CFD accounts lose money with this provider
Pepperstone logo★ #1FCARead review

Our #2 pick for the UK

  • Spread-only pricing with 0% commission
  • No inactivity fee; 24/7 live chat support
  • Wide CFD range with an official API and AI integration
Visit Capital.com 69% of retail CFD accounts lose money with this provider
Broker comparison for the United Kingdom, November 2026
BrokerRegulation in this marketPricing modelPlatformsBest for
1. PepperstoneFCA (FRN 684312)Razor: from 0.0 pips + commission (from USD 3.50 per lot per side on the Pepperstone platform); Standard: no commission, about 1.0 pip on majorsMT4, MT5, cTrader, TradingView, Pepperstone platform & appLow-cost raw spreads, MT4/MT5/cTrader/TradingView
2. Capital.comFCA (FRN 793714)Spread-only pricing, 0% commission; overnight funding fee 4% p.a. +/- benchmark rate; 0.7% currency conversion; no inactivity feeCapital.com web & app, MT4, MT5 (not UK), TradingView, APIBeginners, mobile trading, share/ETF/crypto CFD range, UK spread betting
3. IGFCASpread and commission pricing varies by market; see IG's published cost pagesIG platform & app, MT4, MT5, ProRealTime, TradingViewBroad market range, spread betting (UK)
4. CMC MarketsFCASpread-based with product-level pricing; see CMC's published cost pagesNext Generation platform, app, MT4, TradingViewCharting, index CFDs, platform depth
5. SpreadexFCA (FRN 190941)Spread betting, cost in the spreadSpreadex web & appUK spread betting
6. eToroFCA (FRN 583263)Proprietary platform with copy trading; spreads vary by asseteToro web & app, copy tradingSocial/copy trading

Ready to open an account?

73.6% of retail CFD accounts lose money with this provider

What to know for this question

Capital.com offers a public REST and WebSocket API, with all API orders as market orders and no read-only keys, and lists API and AI integration on its UK page. Its official open-source MCP server defaults to demo, with 2FA and two-step trade confirmation. Pepperstone's API and FIX offering is stated globally, but its UK terms are not in the files.

Watch out: Automation magnifies mistakes. Test on a demo, build in position limits and check API rate limits and order types, since Capital.com API orders are market-only.

AI, API and automated trading

  • Expert Advisors run on MT4/MT5; Pepperstone supports them.
  • cTrader Automate supports C# algos (Pepperstone).
  • Capital.com offers a public REST/WebSocket API and an official MCP server for AI tools (demo by default, two-step trade confirmation).
  • AI signals are not advice and can fail in new market regimes.
  • Check VPS, latency and execution policy before going live.
Automation and AI
FeaturePepperstoneCapital.com
Expert AdvisorsYes on MT4/MT5; cTrader Automate (C#)Yes on MT4/MT5
APIAPI/FIX offering; see Pepperstone's API pagePublic REST/WebSocket API
AI assistant integrationNone officially announcedOfficial open-source MCP server (demo by default)

Pepperstone vs Capital.com

Platforms and apps
FeaturePepperstoneCapital.com
PlatformsMT4, MT5, cTrader, TradingView, Pepperstone platform & appCapital.com web & app, MT4, MT5 (not UK), TradingView, API
TradingViewYesYes
cTraderYesNo
MetaTrader 4 / 5YesYes (MT5: No UK)
Support24h Mon–Fri, 18h at weekends (Pepperstone site)24/7 live chat, WhatsApp, email (help centre)

Pepperstone · Pros

  • Four platform choices: MT4, MT5, cTrader and TradingView
  • Razor (raw spread + commission) and Standard (no commission) accounts
  • Perpetual CFDs launched in 2026
  • Entities regulated by ASIC, FCA and BaFin-registered in Germany

Cons

  • Support is 24h Mon–Fri plus 18h at weekends, not strictly 24/7
  • Islamic accounts only for a listed country set
  • UAE, Hong Kong and Singapore clients are served by an offshore Bahamas entity
  • Spread betting only in the UK

Capital.com · Pros

  • No commission and no inactivity fee
  • 4,500+ share CFDs, 1,300+ ETF CFDs, 450+ crypto CFDs (global entity)
  • Official API and AI (MCP) integration
  • 24/7 live chat support

Cons

  • No cTrader
  • Overnight platform fee of 4% p.a. +/- benchmark rate and 0.7% currency conversion
  • MT5 not offered to UK clients
  • Not available in Singapore

Frequently asked questions

Can I use expert advisors instead of an API?
Yes, on MetaTrader. Pepperstone UK lists MT4 and MT5 and allows expert advisors, and cTrader supports Automate in C#. Capital.com UK lists MT4, and its MT4 article mentions automated trading 24/7. Capital.com UK does not list MT5. EAs run without custom API code, which can suit non-programmers.
Can AI trade for me?
Technically yes via APIs or EAs, but you remain responsible for orders and risk. Start on demo with strict limits.
Does Capital.com support AI tools?
Yes. It offers an official open-source MCP server for assistants such as Claude, Cursor, Windsurf and Codex, with demo mode by default and trade confirmation steps.
Is Pepperstone available in the United Kingdom?
Yes. Pepperstone Limited is authorised by the FCA (FRN 684312) and serves UK clients, including spread betting.
Is Capital.com available in the United Kingdom?
Yes. Capital Com (UK) Limited is authorised by the FCA (FRN 793714) and offers CFDs and spread betting.
Which register should I check for the United Kingdom?
Search FCA Financial Services Register for the legal entity and licence number named in the broker's footer, and confirm it is the entity that accepts clients from the United Kingdom.
How often is this page updated?
We re-check broker facts monthly against official sources; this page was last updated in November 2026.

Ready to open an account?

73.6% of retail CFD accounts lose money with this provider

Sources and last verification

We verify entities, licence numbers, leverage, pricing and platform facts against the regulator registers and each broker's own legal pages, help centre and published fee pages. Last verified: November 2026. Where an official source is unclear or a broker's pages disagree, we say so instead of guessing.

How we rank brokers

We score every broker on regulation and client-money safety, total trading cost, platforms, product range, funding and support. Scores come from official broker documents and regulator registers, re-checked every month. See our full methodology and advertiser disclosure. Methodology · Affiliate disclosure

Risk warning: CFDs, spread bets and leveraged forex are complex instruments and carry a high risk of losing money rapidly due to leverage. A majority of retail client accounts lose money when trading CFDs; each provider publishes its own current percentage on its website. You should consider whether you understand how these products work and whether you can afford the high risk of losing your money. Nothing on this site is personal advice. Availability, leverage and protections depend on your country and on the broker entity that accepts you.
Our #1 pick: PepperstoneOpen an account in minutesOpen account →