Quick answer
FXCM offers a REST API over a socket.io connection (wrapped by the fxcmpy Python package), the ForexConnect SDK and FIX. You authenticate with a persistent token generated in Trading Station Web, and a free demo account uses the same API. FXCM does not accept US residents.
FXCM API at a glance
- Pricing
- API free with an account
- Availability
- UK, EU, Australia and international; not US residents
- Paper trading
- Free demo account
- Integration type
- Local gateway
- In AlgoGP
- Design and backtest in AlgoGP, connect the exported code
- Auth
- Persistent token from Trading Station Web
- APIs
- REST over socket.io, ForexConnect, FIX
- Python
fxcmpy(REST), ForexConnect bindings- Demo
- Free demo with API access
Build a FXCM strategy with AlgoGP
AlgoGP does not connect to FXCM natively yet. FXCM connects through a local gateway, socket, FIX or Protobuf stack rather than plain HTTPS, so it runs as a separate process next to your strategy.
- 1
Design and backtest in AlgoGP
Describe the strategy to the copilot and backtest it on years of normalized history. The result does not depend on any vendor.
- 2
Export the Python project
Every project exports
strategy.py,market_data.py,brokers.pyandlive.py. The strategy only sees bars, cash, positions and orders, never a vendor’s wire format. - 3
Plug in FXCM
Implement the four adapter methods (
account,positions,submit_market_orderand a candle fetcher) with FXCM’s SDK, or keep a built-in platform for paper trading and add FXCM when you go live.
Built-in brokers for the same markets: OANDA, Interactive Brokers.
FXCM API: frequently asked questions
Can US residents use the FXCM API?
No, FXCM does not onboard US clients.
Why does FXCM need socket.io?
The REST API is served over an authenticated socket.io session; libraries such as fxcmpy manage it.
Design and backtest your FXCM strategy first
AlgoGP turns an idea into Python and tests it on years of history before you connect it to FXCM. The exported code keeps the broker behind four small adapter methods.
- AI copilot writes and revises the rules
- Backtests with realistic costs
- Exported Python ready to wire to FXCM
Free plan, no card required.
FXCM alternatives
- OANDA API Built into AlgoGPRegulated forex and CFD broker whose v20 REST API serves both orders and candles, with a free demo account.
- FOREX.com API GuideStoneX’s retail FX broker: the GAIN Capital REST trading API for forex and CFDs, with username, password and an app key.
- IG API GuideRegulated CFD, spread-betting and FX broker with a REST trading API, Lightstreamer streaming and a demo account.
- MetaTrader 5 API GuideThe forex and CFD terminal hundreds of brokers run: automate it with MQL5 Expert Advisors or the official MetaTrader5 Python package.
Independent guide. AlgoGP is not affiliated with FXCM. Limits, prices and availability change; confirm them in the official documentation. Nothing here is investment advice.