Broker APIs with a demo or sandbox
A demo or sandbox account trades virtual money, so a mistake in your code costs nothing there. Whether the API works on the demo at all, and on what terms, differs from one provider to the next.
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.
Not recorded means this site holds no record. It does not mean the broker or platform lacks it. Rows are in name order, the order is not a ranking, and nothing here recommends a broker.
How each row is decided
Each record holds a sentence about demo access, not a yes or no field. A person read each sentence and entered yes, partial or no in the capability facts register only where the sentence's own words settle it. The reason is printed in this site's words, the scope says what the demo is of, and the sentence itself is quoted under it. A demo of a trading platform is not a demo of an API: where the sentence describes only a platform demo, the state is partial and the scope says so. The status, the source and the date are the sentence's own, so a reading of an unverified sentence is unverified. A sentence that settles nothing stays at not recorded.
- Yes
- A record on this site says so: a structured field, a record that exists, or a sentence in a record that was read and entered in the capability facts register, with the reason printed beside it. 14 of the 29 rows below.
- Partial
- A sentence in a record gives part of it: one route and not another, or a demo of the platform and not of the API. The reading is a row of the capability facts register, and the reason and the scope are printed beside it. 10 of the 29 rows below.
- No
- A record on this site says no: a structured field set to false, or a sentence in a record that says so, read and entered in the capability facts register. 3 of the 29 rows below.
- Not recorded
- This site holds no yes or no for it. That is a gap in this dataset. It is not a statement that the broker or platform lacks the capability. 2 of the 29 rows below.
5 of the rows rest on a record that is labelled unverified. Each says so beside its source.
Brokers
| Record | State | What the record holds | Source and date |
|---|---|---|---|
| Axi | Partial | The record describes a free demo account on MetaTrader 4 or MetaTrader 5, and says it is a demo of the platform and not of an API. Scope: Platform demo only. The record describes no Axi API to have a demo of.
| Demo account, Axi UKchecked |
| Bitget | Yes | The record says demo trading with virtual funds works over REST with a demo API key and a paptrading header, and over WebSocket on separate addresses. Scope: API demo, REST and WebSocket.
| Bitget API quick start, Demo Tradingchecked |
| Capital.com | Yes | The record says there is a separate demo base URL for the API. Scope: API demo.
| Capital.com Public APIchecked |
| CMC Markets | Partial | The record describes an MT4 demo account and says it is a demo of the platform, not of an API. Scope: Platform demo only. The record says the CMC Connect page does not say whether a test FIX session is offered.
| CMC Markets UK MetaTrader 4checked |
| Deriv | Yes | The record says each user gets a default demo account at signup and that there is a separate demo WebSocket endpoint. Scope: API demo.
| Deriv API: API overviewchecked |
| Dukascopy | Partial | The record says the JForex SDK example programs run in demo mode, and that no demo is stated for the FIX API. Scope: JForex API only. Not stated for the FIX API.
| Dukascopy wiki, JForex SDK LIVE modechecked |
| eToro | Yes | The record says an API key is bound to Demo or Real when it is created, so a key can be made for the demo environment. Scope: API demo.
| eToro Builders FAQchecked |
| Exness | Not recorded | No state is taken from the record's sentence about a demo or sandbox: the capability facts register holds no reading of it as a yes, a partial or a no, and it does not itself open with one of those words.
| UnverifiedExness API help article (did not open on 12 Oct 2026)checked |
| FOREX.com / StoneX Trading (City Index) | Partial | The record says a Pre-Production environment exists beside Live, and that only some users are given access to it. Scope: Pre-Production API environment, by user type. The record says the documentation does not say that a retail demo account can use the API.
| StoneX API documentation, Getting Startedchecked |
| FXCM | Yes | The record says ForexConnect connects to demo as well as real Trading Station accounts. Scope: ForexConnect. The record does not say for the FIX API or the Java API.
| GitHub fxcm/ForexConnectAPIchecked |
| FxPro | Partial | The record describes an Open Demo Account button on the platform comparison page, and says it is a platform demo that says nothing about an API. Scope: Platform demo only.
| UnverifiedFxPro platform comparison (did not open on 12 Oct 2026)checked |
| IG | Partial | The record says the API works on demo, but that a standalone demo account gets no key unless it is linked to a live account. Scope: API demo, with a key that needs a live account.
| How to use IG APIchecked |
| Interactive Brokers | Partial | The record says paper trading accounts are supported, and that demo accounts cannot subscribe to data. Scope: Paper trading accounts. Demo accounts cannot subscribe to market data.
| IBKR Web API documentation, using a paper accountchecked |
| OANDA | Yes | The record says there is an fxTrade Practice environment with its own token. Scope: API demo.
| OANDA Development Guidechecked |
| Pepperstone | Partial | The record says a FIX demo environment can be requested by account holders who meet a monthly volume threshold, and that no demo is stated for the Standard API. Scope: FIX API only, on request and by volume. The record says the platform demo is not an API demo.
| Pepperstone API tradingchecked |
| Saxo OpenAPI | Yes | The record says there is a SIM environment, with 24 hour portal tokens that work in SIM only. Scope: API demo.
| Saxo Environmentschecked |
| Swissquote | Yes | The record says the FAQ on Swissquote's institutional securities API page offers a demo environment to validate an API integration. Scope: Institutional securities API. The record says the private client platform demo is not stated to cover the FIX API.
| Swissquote institutional, securities and cryptos via an APIchecked |
| ThinkMarkets | Partial | The record describes a Try demo button and a Demo Account option on the UK site, and says they are a platform demo that says nothing about an API. Scope: Platform demo only.
| UnverifiedThinkMarkets UK (did not open on 12 Oct 2026)checked |
| Tickmill | No | The record says Tickmill's FAQ states there is no demo version of its FIX API connection. Scope: FIX API. The same record describes a platform demo for MetaTrader 4 and MetaTrader 5.
| Tickmill FAQ: FIX API connectionchecked |
| Trading 212 | Yes | The record says the documentation names a paper trading environment on its own host beside the live host. Scope: API demo.
| Trading 212 API docs: API environmentschecked |
| XTB | No | The record's sentence about demo access is the single word No.
| XTB help centre: Does XTB offer investment automation tools?checked |
Platform APIs
| Record | State | What the record holds | Source and date |
|---|---|---|---|
| cTrader Open API | Yes | The record says there is a separate demo endpoint, with the demo and live environments fully separated. Scope: API demo.
| Proxies and endpointschecked |
| DXtrade APIs | No | The record says Devexperts offers no demo to traders: the demo on the DXtrade website is for brokers and prop firms. Scope: From the platform vendor only. The record says to ask your broker for a demo account.
| DXtrade: Traders FAQchecked |
| Match-Trader Platform API | Partial | The record describes a demo platform at demo.match-trader.com, and says no page states whether the API can be used against it. Scope: Platform demo only. Use of the API on it is not stated.
| UnverifiedMatch-Trader Platform APIchecked |
| MetaApi | Yes | The record says a demo MetaTrader account can be added to the service and used through the same API. Scope: A demo MetaTrader account on the same API. The record says there is no separate demo API environment.
| MetaApi documentation, FAQchecked |
| MetaCopier | Not recorded | No state is taken from the record's sentence about a demo or sandbox: the capability facts register holds no reading of it as a yes, a partial or a no, and it does not itself open with one of those words.
| UnverifiedMetaCopier documentation, REST APIchecked |
| MetaTrader 4 (MQL4) | Yes | The record says demo accounts can be opened from within the terminal. Scope: Demo trading accounts in the terminal.
| Opening of accounts (MT4 help)checked |
| MetaTrader 5 (Python package and MQL5) | Yes | The record says demo accounts can be opened from within the terminal. Scope: Demo trading accounts in the terminal.
| Opening an account (MT5 help)checked |
| TradeLocker API | Yes | The record says there is a separate demo environment at demo.tradelocker.com.
| Getting Started with TradeLocker Public APIchecked |
Where to go next
- Demo accounts: every record's full wording
- Demo versus live
- The full capability grid
- Which brokers have their own API
- Broker API documentation links
- Broker APIs with streaming
- Broker APIs with authentication described
- Broker APIs with published rate limits
- Broker APIs with an official SDK or library
- Broker APIs with a Python library
- Broker APIs with an official MCP server
- Broker APIs with a community MCP server
- Brokers reachable through a platform API
- Broker APIs with endpoints documented here
- Broker APIs with error codes decoded here
- Broker APIs with an OpenAPI file on this site
- Broker APIs with a quickstart on this site
- Broker APIs with dated changes recorded
- Download the grid as JSON
How to cite this
Broker APIs with a demo or sandbox. Broker API Hub, https://openbrokerapi.com/capabilities/demo, newest check .
Where you rely on a single figure, cite the source and the checked date printed beside it as well.