API Trading for FX Markets

Automate your trading by connecting your algo-trading strategies with our deep liquidity.
Automate your trading by connecting your algo-trading strategies with our deep liquidity through REST API.
Our REST API provides access to live streaming prices, trade execution, advanced order types, and access to over 80 of the world’s most traded markets.
  • Access over 80 FX markets
  • Execute traders and orders using trading systems and algos
  • Full developer resources
Open an account

Open an MT4 account instead

*After creating an account, you must contact our service team to connect our REST API with your standard or MT4 account

Range of REST API functionality

Automated trading strategies

Execute trades and a full range of orders against live streaming prices using your own algorithms or trading systems
Managing risk

Integrated account management

View your current active orders, account balance, available margin, open positions, and historical trades in real-time.
advanced charting

Charting and analysis

Strengthen your strategy with historical market data for deeper technical analysis
icon price action

Easily compatible solution

Code against the API using any network accessible programming language from Perlscript, C++, Python, or VB.NET

Connect to FOREX.com's API

Getting started

  1. Apply for an account
  2. Request access to the API from our customer service team
  3. Connect directly to our REST API, develop, test, and automate your trading strategies

API support

  • Access our documentation portal for sample code, support tools, and more
  • Take advantage of our API Member Support Forum to get answers to your questions, account maintenance, and other help

Why use REST API?

REST stands for “Representational State Transfer” and is known for its easy-to-use nature that utilizes interactions to communicate via HTTP between client and server

REST API’s use of HTTP means it can work with any standard programing language to retrieve, send, update, and delete data to a specific resource

REST is cacheable, meaning the API can cache resources to improve future performance

REST features stateless client-server communications that ensure no information is being stored between interactions

Institutional FIX API

We offer a FIX API for institutions looking to offer our markets and liquidity to their customers. Contact our Institutional Sales team to learn more.