Forex broker API integration
Forex brokers offer different routes for automation. Some have their own APIs, many offer MetaTrader or cTrader, and some offer FIX to larger clients. We build on whichever route your broker supports, and we tell you when another route would serve your strategy better.
- Your strategypairs, sessions, sizing
- Your enginerisk checks and order handling
- Broker routeAPI, MetaTrader, cTrader or FIX
- Your forex accountdemo first, then live
Brokers we have built on
| Broker | Routes we use |
|---|---|
| OANDA | OANDA’s REST and streaming API, or MetaTrader |
| FXCM | FXCM’s APIs, or MetaTrader |
| Forex.com | Its API or MetaTrader |
| Pepperstone, IC Markets, FP Markets | MetaTrader or cTrader |
| AvaTrade, Swissquote | MetaTrader |
| Dukascopy | JForex (Java) |
The forex-specific engineering
- Position sizing per pair, because a pip is worth a different amount on each pair and in each account currency.
- Spread widening around news and the daily rollover, checked before each order.
- Swap and rollover costs included when positions are held overnight.
- The weekend gap: the market closes on Friday and reopens on Sunday evening, so the system must handle what it holds across the gap.
- Several brokers at once, where prices and fills differ slightly between them.
See also MetaTrader development, cTrader development and forex trading automation.
We build software that runs your strategy. We don’t supply strategies or signals, we don’t manage money, and we make no claim about how any strategy performs. The rules and every trading decision stay yours.
Common questions
- Should my forex strategy use the broker’s API or MetaTrader?
- If your broker has a solid API and your logic lives outside MetaTrader, the API usually gives more control. If you already have an EA or want to stay inside the platform, MetaTrader is the faster route. We look at your broker and your strategy and say which we would use.
- Can one system trade forex at several brokers?
- Yes, with an adapter per broker, sizing per account, and each account reconciled separately.