# FXCM API: limits, auth and errors

Independent and unofficial. Not affiliated with or endorsed by any broker or platform named here. Educational only: nothing here is advice, and nothing here recommends a broker or a trade.

This is the markdown version of https://openbrokerapi.com/brokers/fxcm, written from the same records as that page.

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.

ForexConnect and Java SDKs for Trading Station accounts; FXCM's REST API is no longer listed and we found no formal retirement notice.

- Kind: Broker API
- Newest reading: 2026-10-09
- Official documentation: [fxcm.com](https://www.fxcm.com/markets/algorithmic-trading/api-trading/)
- Everything recorded for FXCM, as one JSON file: https://openbrokerapi.com/data/brokers/fxcm.json

## Access, authentication and streaming

- How you get a key: Free SDKs from FXCM GitHub; sign the EULA and apply for a demo account. Support at api@fxcm.com.
  - Status: verified. Source: [GitHub fxcm/ForexConnectAPI](https://github.com/fxcm/ForexConnectAPI), checked 2026-09-21.
- Who can use it: Trading Station account. FIX needs a minimum of 5,000 pounds or dollars. UK page dated 25 Jun 2025.
  - Status: verified. Source: [FXCM API Trading](https://www.fxcm.com/markets/algorithmic-trading/api-trading/), checked 2026-09-20.
- Demo: Yes: ForexConnect connects to demo and real Trading Station accounts.
  - Status: verified. Source: [GitHub fxcm/ForexConnectAPI](https://github.com/fxcm/ForexConnectAPI), checked 2026-09-21.
- Authentication: FIX, the Java API and ForexConnect only. No REST API is listed on FXCM's current API pages, so the legacy REST token flow this site described is recorded as no longer listed rather than retired.
  - Status: verified. Source: [FXCM Socket REST API spec](https://fxcm-rest.readthedocs.io/en/latest/socketrestapispecs.html), checked 2026-09-21.
- Streaming: ForexConnect pushes live prices; the retired legacy REST API streamed over Socket.IO.
  - Status: verified. Source: [FXCM Socket REST API spec](https://fxcm-rest.readthedocs.io/en/latest/socketrestapispecs.html), checked 2026-09-21.
- History depth: Candles: up to 10,000 per request with optional from and to. Depth of history and a trade history endpoint not documented.
  - Status: verified. Source: [FXCM Socket REST API specs](https://fxcm-rest.readthedocs.io/en/latest/socketrestapispecs.html), checked 2026-09-22.
- Rate limits, as worded: Not published. No REST API is listed, so there is nothing to publish limits for.
  - Status: verified. Source: [FXCM Socket REST API spec](https://fxcm-rest.readthedocs.io/en/latest/socketrestapispecs.html), checked 2026-09-21.

## Platform APIs an account here can reach

- [MetaTrader 4 (MQL4)](https://openbrokerapi.com/platforms/metatrader-4): offered. MT4 on desktop, web and mobile. Expert Advisors allowed: 'Get MT4 EAs (Expert Advisors) and Virtual Private Server (VPS) with your MT4 account'.
  - Status: verified. Source: [FXCM UK MetaTrader 4](https://www.fxcm.com/uk/platforms/metatrader-4/), checked 2026-09-18.
- [MetaTrader 5 (Python package and MQL5)](https://openbrokerapi.com/platforms/metatrader-5): not offered. MT5 not listed on the broker's UK platforms page; absence from an overview page is not proof, so unverified.
  - Status: unverified. Source: [FXCM UK platforms](https://www.fxcm.com/uk/platforms/), checked 2026-09-18.
- [cTrader Open API](https://openbrokerapi.com/platforms/ctrader): not offered. cTrader not listed on the broker's UK platforms page; absence from an overview page is not proof, so unverified.
  - Status: unverified. Source: [FXCM UK platforms](https://www.fxcm.com/uk/platforms/), checked 2026-09-18.
- [TradeLocker API](https://openbrokerapi.com/platforms/tradelocker): not offered. TradeLocker not listed on the broker's UK platforms page; absence from an overview page is not proof, so unverified.
  - Status: unverified. Source: [FXCM UK platforms](https://www.fxcm.com/uk/platforms/), checked 2026-09-18.
- [Match-Trader Platform API](https://openbrokerapi.com/platforms/match-trader): not offered. Match-Trader not listed on the broker's UK platforms page; absence from an overview page is not proof, so unverified.
  - Status: unverified. Source: [FXCM UK platforms](https://www.fxcm.com/uk/platforms/), checked 2026-09-18.
- [DXtrade APIs](https://openbrokerapi.com/platforms/dxtrade): not offered. DXtrade not listed on the broker's UK platforms page; absence from an overview page is not proof, so unverified.
  - Status: unverified. Source: [FXCM UK platforms](https://www.fxcm.com/uk/platforms/), checked 2026-09-18.

## FXCM API SDKs and wrappers

- ForexConnectAPI (C++, C#, Java, VB, Python, Official)
  - Status: unverified. Source: [github.com](https://github.com/fxcm/ForexConnectAPI), no checked date recorded.
- forexconnect (Python, Official): Last PyPI release 1.6.43 in July 2021.
  - Status: verified. Source: [pypi.org](https://pypi.org/project/forexconnect/), checked 2026-09-18.
- JavaAPI (Java, Official): Listed in the FXCM GitHub organisation, not archived, last updated 9 Jul 2026.
  - Status: verified. Source: [github.com](https://github.com/fxcm), checked 2026-09-20.
- fxcmpy (Python, Community): Removed from PyPI; the name now holds an empty security placeholder (0.0.0.1). It wrapped the retired REST API.
  - Status: verified. Source: [pypi.org](https://pypi.org/project/fxcmpy/), checked 2026-09-18.
- MarketData (Not stated, Official): Published in the FXCM GitHub organisation, not archived, last updated 9 Jul 2026. The organisation listing is the source; the repository itself was not opened, so its contents are unverified.
  - Status: verified. Source: [github.com](https://github.com/fxcm), checked 2026-09-20.
- FIXAPI (FIX, Official): Published in the FXCM GitHub organisation, not archived, last updated 9 Jul 2026. FIX itself is out of scope for this site.
  - Status: verified. Source: [github.com](https://github.com/fxcm), checked 2026-09-20.

## FXCM API: questions and answers

### Does FXCM have an API?

Yes. This register records FXCM as having its own API (FIX, Java API and ForexConnect), with availability marked as active. ForexConnect and Java SDKs for Trading Station accounts; FXCM's REST API is no longer listed and we found no formal retirement notice.

- Status: verified. Source: [API trading, FXCM](https://www.fxcm.com/markets/algorithmic-trading/api-trading/), checked 2026-09-20.

### FXCM API key: how do I get one?

Free SDKs from FXCM GitHub; sign the EULA and apply for a demo account. Support at api@fxcm.com.

- Status: verified. Source: [GitHub fxcm/ForexConnectAPI](https://github.com/fxcm/ForexConnectAPI), checked 2026-09-21.

### Who can use the FXCM API?

Trading Station account. FIX needs a minimum of 5,000 pounds or dollars. UK page dated 25 Jun 2025.

- Status: verified. Source: [FXCM API Trading](https://www.fxcm.com/markets/algorithmic-trading/api-trading/), checked 2026-09-20.

### FXCM API demo: is there a demo or sandbox?

Yes: ForexConnect connects to demo and real Trading Station accounts.

- Status: verified. Source: [GitHub fxcm/ForexConnectAPI](https://github.com/fxcm/ForexConnectAPI), checked 2026-09-21.

### What are the FXCM API rate limits?

Not published. No REST API is listed, so there is nothing to publish limits for.

- Status: verified. Source: [FXCM Socket REST API spec](https://fxcm-rest.readthedocs.io/en/latest/socketrestapispecs.html), checked 2026-09-21.

### How does FXCM API authentication work?

FIX, the Java API and ForexConnect only. No REST API is listed on FXCM's current API pages, so the legacy REST token flow this site described is recorded as no longer listed rather than retired.

- Status: verified. Source: [FXCM Socket REST API spec](https://fxcm-rest.readthedocs.io/en/latest/socketrestapispecs.html), checked 2026-09-21.

### Does the FXCM API support streaming?

ForexConnect pushes live prices; the retired legacy REST API streamed over Socket.IO.

- Status: verified. Source: [FXCM Socket REST API spec](https://fxcm-rest.readthedocs.io/en/latest/socketrestapispecs.html), checked 2026-09-21.

### How much history does the FXCM API return?

Candles: up to 10,000 per request with optional from and to. Depth of history and a trade history endpoint not documented.

- Status: verified. Source: [FXCM Socket REST API specs](https://fxcm-rest.readthedocs.io/en/latest/socketrestapispecs.html), checked 2026-09-22.

### Is there a Python library for the FXCM API?

This register lists these Python libraries for the FXCM API. ForexConnectAPI (official, C++, C#, Java, VB, Python). forexconnect (official, Python): Last PyPI release 1.6.43 in July 2021. fxcmpy (community, Python): Removed from PyPI; the name now holds an empty security placeholder (0.0.0.1). It wrapped the retired REST API.

- Status: verified. Source: [forexconnect](https://pypi.org/project/forexconnect/), checked 2026-09-18.
- Status: verified. Source: [fxcmpy](https://pypi.org/project/fxcmpy/), checked 2026-09-18.

### Which platform APIs work with an account at FXCM?

Recorded as offered, with a source: MetaTrader 4. Not verified either way: MetaTrader 5, cTrader, TradeLocker, Match-Trader and DXtrade.

- Status: verified. Source: [FXCM UK MetaTrader 4](https://www.fxcm.com/uk/platforms/metatrader-4/), checked 2026-09-18.

[FXCM API questions, each answered in a sentence or two](https://openbrokerapi.com/answers/fxcm).

## Partner programme

Published figure, as the page words it: up to $800 per each Qualified Client. [The FXCM partner programme record](https://openbrokerapi.com/partners/fxcm). This site carries no affiliate links.

## Licence and how to cite

The limit records on this page come from the limits register, which is CC BY 4.0 (https://openbrokerapi.com/data/limits.json). Everything else on it comes from records that are all rights reserved. This file is the page itself, at its own address, in another format, and it is not part of the CC BY 4.0 downloads listed at https://openbrokerapi.com/data.

Cite as: FXCM API: limits, auth and errors. Broker API Hub, https://openbrokerapi.com/brokers/fxcm, newest check 2026-10-09.

Where you rely on a single figure, cite the source and the checked date printed beside it as well. Where this page and a broker's own documentation differ, the documentation wins.
