Broker API HubMenu

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.

Independent and unofficialNewest check

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

RecordStateWhat the record holdsSource and date
AxiNot recorded

The record lists no library of any kind.

No record held
BitgetYes

Python libraries in the record: bitget-python-sdk-api (official).

Read the record

bitget-python-sdk-apichecked
Capital.comYes

Python libraries in the record: capital-mcp (community) and capitalcom-python (community).

Read the record

capital-mcpchecked
CMC MarketsNot recorded

The record lists no library of any kind.

No record held
DerivYes

Python libraries in the record: python-deriv-api (official).

Read the record

python-deriv-apichecked
DukascopyNot recorded

The record lists libraries, but none whose language field names Python.

Read the record

No record held
eToroNot recorded

The record lists no library of any kind.

No record held
ExnessNot 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).

Read the record

forexcomchecked
FXCMYes

Python libraries in the record: ForexConnectAPI (official), forexconnect (official) and fxcmpy (community).

Read the record

forexconnectchecked
FxProNot recorded

The record lists no library of any kind.

No record held
IGYes

Python libraries in the record: trading-ig (community).

Read the record

trading-igchecked
Interactive BrokersYes

Python libraries in the record: TWS API (ibapi) (official), ib_async (community) and ibeam (community).

Read the record

TWS API (ibapi)checked
OANDAYes

Python libraries in the record: v20 (official) and oandapyV20 (community).

Read the record

oandapyV20checked
PepperstoneNot recorded

The record lists no library of any kind.

No record held
Saxo OpenAPIYes

Python libraries in the record: saxo_openapi (community).

Read the record

saxo_openapichecked
SwissquoteNot recorded

The record lists no library of any kind.

No record held
ThinkMarketsNot recorded

The record lists no library of any kind.

No record held
TickmillNot recorded

The record lists no library of any kind.

No record held
Trading 212Not recorded

The record lists no library of any kind.

No record held
XTBNot recorded

The record lists no library of any kind.

No record held

Platform APIs

RecordStateWhat the record holdsSource and date
cTrader Open APIYes

Python libraries in the record: OpenApiPy (ctrader-open-api) (official).

Read the record

OpenApiPy (ctrader-open-api)checked
DXtrade APIsNot recorded

The record lists no library of any kind.

No record held
Match-Trader Platform APINot recorded

The record lists no library of any kind.

No record held
MetaApiYes

Python libraries in the record: metaapi-cloud-sdk (official).

Read the record

metaapi-cloud-sdkchecked
MetaCopierYes

Python libraries in the record: MetaCopier API client packages (official).

Read the record

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).

Read the record

MetaTrader5checked
TradeLocker APIYes

Python libraries in the record: tradelocker (official).

Read the record

tradelockerchecked

Where to go next

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.