Broker APIs with a Python library
A Python library lets you call an API from Python without writing the HTTP requests yourself. Python is the language most people learn first for this kind of work.
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
Yes means the record lists at least one library whose language field names Python, official or community. Each is shown as official or community, as the record marks it. A record that lists no Python library is not recorded, which is not evidence that none exists. The finder on /compare reads this same cell for its Python library tick, so the two give one answer.
- 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.
- 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. 15 of the 29 rows below.
Brokers
| Record | State | What the record holds | Source and date |
|---|---|---|---|
| Axi | Not recorded | The record lists no library of any kind. | No record held |
| Bitget | Yes | Python libraries in the record: bitget-python-sdk-api (official). | bitget-python-sdk-apichecked |
| Capital.com | Yes | Python libraries in the record: capital-mcp (community) and capitalcom-python (community). | capital-mcpchecked |
| CMC Markets | Not recorded | The record lists no library of any kind. | No record held |
| Deriv | Yes | Python libraries in the record: python-deriv-api (official). | python-deriv-apichecked |
| Dukascopy | Not recorded | The record lists libraries, but none whose language field names Python. | No record held |
| eToro | Not recorded | The record lists no library of any kind. | No record held |
| Exness | Not recorded | The record lists no library of any kind. | No record held |
| FOREX.com / StoneX Trading (City Index) | Yes | Python libraries in the record: pygcapi (community) and forexcom (community). | forexcomchecked |
| FXCM | Yes | Python libraries in the record: ForexConnectAPI (official), forexconnect (official) and fxcmpy (community). | forexconnectchecked |
| FxPro | Not recorded | The record lists no library of any kind. | No record held |
| IG | Yes | Python libraries in the record: trading-ig (community). | trading-igchecked |
| Interactive Brokers | Yes | Python libraries in the record: TWS API (ibapi) (official), ib_async (community) and ibeam (community). | TWS API (ibapi)checked |
| OANDA | Yes | Python libraries in the record: v20 (official) and oandapyV20 (community). | oandapyV20checked |
| Pepperstone | Not recorded | The record lists no library of any kind. | No record held |
| Saxo OpenAPI | Yes | Python libraries in the record: saxo_openapi (community). | saxo_openapichecked |
| Swissquote | Not recorded | The record lists no library of any kind. | No record held |
| ThinkMarkets | Not recorded | The record lists no library of any kind. | No record held |
| Tickmill | Not recorded | The record lists no library of any kind. | No record held |
| Trading 212 | Not recorded | The record lists no library of any kind. | No record held |
| XTB | Not recorded | The record lists no library of any kind. | No record held |
Platform APIs
| Record | State | What the record holds | Source and date |
|---|---|---|---|
| cTrader Open API | Yes | Python libraries in the record: OpenApiPy (ctrader-open-api) (official). | OpenApiPy (ctrader-open-api)checked |
| DXtrade APIs | Not recorded | The record lists no library of any kind. | No record held |
| Match-Trader Platform API | Not recorded | The record lists no library of any kind. | No record held |
| MetaApi | Yes | Python libraries in the record: metaapi-cloud-sdk (official). | metaapi-cloud-sdkchecked |
| MetaCopier | Yes | Python libraries in the record: MetaCopier API client packages (official). | MetaCopier API client packageschecked |
| MetaTrader 4 (MQL4) | Not recorded | The record lists no library of any kind. | No record held |
| MetaTrader 5 (Python package and MQL5) | Yes | Python libraries in the record: MetaTrader5 (official) and Community Python MCP server (MQL5 article 21905) (community). | MetaTrader5checked |
| TradeLocker API | Yes | Python libraries in the record: tradelocker (official). | tradelockerchecked |
Where to go next
- SDKs and wrappers
- The full capability grid
- Which brokers have their own API
- Broker API documentation links
- Broker APIs with a demo or sandbox
- 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 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 Python library. Broker API Hub, https://openbrokerapi.com/capabilities/python-library, newest check .
Where you rely on a single figure, cite the source and the checked date printed beside it as well.