Check a broker's API before you build on it.
Keys, limits, endpoints and error codes, each with the page it was read on and the date it was checked.
GET /lookup?q=3 examples
- brokerIGREST plus streaming for IG spread bet and CFD accounts.
- GET/positionsIG. All open positions on the active account, each with its market snapshot.
- errorerror.public-api.exceeded-api-key-allowanceIG, HTTP 403. The traffic allowance of the API key has been exceeded.
Searches 21 brokers, 8 platform APIs, 359 endpoints, 215 functions and messages, and 1,776 error codes. Matching runs in your browser.
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.
Start here
New to trading through an API? Three short reads, in order. You do not need to be a programmer for the first.
Find your broker
Open one broker's record: how you get a key, its limits, its endpoints and its errors.
Look up an error
1,776 error codes recorded: what each one means, and how to fix it where the source says how (781 of them). Paste the message you were sent.
Find an API that fits
Tick what you need, such as a demo, streaming or a Python library, and see which records fit, side by side. A filter over recorded facts, not a recommendation.
- SourcedEvery fact links to the page it was read on.
- DatedEvery fact shows the date it was last checked.
- Plain about gapsIf we could not verify something, it says Unverified.
New to this? Three reads, in order.
- How trading through an API worksWhat an API is, what you need before you start, and how to choose between a broker's own API and a platform API.
- Get a key and a demo account, safelyWhat an API key is, why you start on a demo account, and the one habit that keeps a key out of your code: environment variables.
- Make your first call, on the practice APIMake a real HTTP request from Python to this site's practice API and read the account summary it sends back. It introduces GET, status codes, headers and checking a reply before you trust it.
Not sure this is for you at all? Is API trading for you? is one screen on who should not bother, what the first win is and what it costs.
The practice API answers with invented data and needs no account, so it is the place to try a request. Once you have a broker demo login, make a first call on a demo account.
Never written code before? Learn to code by building trading tools, from a first script to a backtest.
Broker APIs read at source
281 endpoints recorded across 8 brokers, in name order, and 78 more across 4 platform APIs. Each row shows how much of that broker's record is sourced.
What a person has checked: of the 2,479 records behind this site, 2,256 were read on the vendor's own page by a person and carry the date. The rest were carried over from an earlier version of the site with their original dates, or are written from this site's own reading, and each page says which. How facts are checked.
- Capital.comPublic REST API and WebSocket feed for Capital.com CFD accounts, live and demo.7 of 7 facts sourced, newest check
- DerivWebsocket first trading API with published per call budgets.5 of 7 facts sourced, newest check
- eToroPublic REST API and WebSocket for verified eToro users, with demo trading endpoints.7 of 7 facts sourced, newest check
- IGREST plus streaming for IG spread bet and CFD accounts.6 of 6 facts sourced, newest check
- Interactive BrokersTWS API (socket via TWS or IB Gateway), and a single IBKR Web API that IBKR is folding Client Portal Web API, Digital Account Management and the Flex Web Service into.7 of 7 facts sourced, newest check
- OANDAv20 REST API with HTTP streaming for prices and transactions.7 of 7 facts sourced, newest check
- Saxo OpenAPIOAuth 2.0 REST and WebSocket API, with a free simulation environment.7 of 7 facts sourced, newest check
- Trading 212REST API for the General Invest Account and the Stocks and Shares ISA, described as beta; it does not reach the CFD account.5 of 6 facts sourced, newest check
Every broker on the register, including those with no API of their own. Platform APIs such as MetaTrader and cTrader work across many of them.
Stuck on an error? Pick the API it came from.
Each API has an index of its recorded errors, in name order, with the number of codes on record.
- Capital.com 24
- cTrader 53
- curl 7
- Deriv 10
- DXtrade 79
- eToro 16
- HTTP 19
- IG 132
- Interactive Brokers 511
- Match-Trader 3
- MetaTrader 4 161
- MetaTrader 5 311
- Node.js 5
- OANDA 242
- OAuth 2.0 8
- Python 10
- Requests and urllib3 12
- Saxo 143
- TLS 5
- TradeLocker 5
- Trading 212 8
- WebSocket 12
Not sure which API sent it? Paste the message into the error lookup.
Today's open source repository
Repository of the day
code-rabi/interactive-brokers-mcp
Interactive Brokers MCP Server
219 starsJavaScriptAI agent or MCP serverLicence: MIT
Everything on this site
Every section of the site, one link each.
- Broker APIsEvery broker on the register, grouped by whether it has an API of its own.21 brokers
- Platform APIsMetaTrader, cTrader, TradeLocker and other APIs that work across brokers.8 platform APIs
- Error codesWhat each error means, and the fix where the source gives one, by broker and platform.1,776 error codes
- GuidesStep by step guides. Each step shows the page it was read on.37 guides
- Find an API that fitsTick what you need and see which records fit, then put up to three side by side. No winner is picked.
- Apps and samplesSample apps built on broker and platform APIs, each marked tested or test pending.9 apps
- What changedDated changes to broker and platform APIs, each with the page it was read on.121 dated changes
- Learn to codeFrom a first script to a backtest, by building trading tools.31 lessons
- RepositoriesOpen source trading repositories, read from GitHub's own records.70 listed repositories
- Repository of the dayEvery listed repository takes a turn, in a fixed order, one a day.
- Partner programmesWhat each firm publishes about its partner programme, as its own pages word it.
- Fact registerFigures that appear on more than one page, each held once with its source.
- Market data sourcesWhere trading code gets its data, and what each source's own pages say you may do with it.20 sources
- Download the dataThe registers behind the site as JSON and CSV files.
- Use with an AI assistantllms.txt, markdown pages, JSON and OpenAPI files for programs and assistants, and what to check.
- About and methodHow facts are checked, what is in scope and the disclosures.