Table of Contents
Affiliate Disclosure
Affiliate Disclosure DailyForex.com adheres to strict guidelines to preserve editorial integrity to help you make decisions with confidence. Some of the reviews and content we feature on this site are supported by affiliate partnerships from which this website may receive money. This may impact how, where and which companies / services we review and write about. Our team of experts work to continually re-evaluate the reviews and information we provide on all the top Forex / CFD brokerages featured here. Our research focuses heavily on the broker’s custody of client deposits and the breadth of its client offering. Safety is evaluated by quality and length of the broker's track record, plus the scope of regulatory standing. Major factors in determining the quality of a broker’s offer include the cost of trading, the range of instruments available to trade, and general ease of use regarding execution and market information.

Forex Trading APIs

API trading is one of the more advanced elements of experienced traders. Some Forex brokers with trading APIs actively support this method of connection and execution, but any Forex broker with the MT4 platform theoretically allows API trading. MT4 enables algorithmic trading via Expert Advisors (EAs), the native algorithmic trading scripts or programs on MT4 using its MQL4 coding language.

Our review of Forex trading APIs details what they are, who can use them, and how to connect your MT4 API to your Forex brokerage account.

1
4/5
The ratings shown on DailyForex.com are determined by hours of research from our editorial team into over 10 factors, including account fees, deposit/withdrawal options, regulatory status, tradable assets, and more.
No dealing desk execution + wide range of trading apps
2
3.5/5
The ratings shown on DailyForex.com are determined by hours of research from our editorial team into over 10 factors, including account fees, deposit/withdrawal options, regulatory status, tradable assets, and more.
NFA regulated broker
In-house research and excellent educational center
3
4.5/5
The ratings shown on DailyForex.com are determined by hours of research from our editorial team into over 10 factors, including account fees, deposit/withdrawal options, regulatory status, tradable assets, and more.
Best ECN execution on the MT4 platform
Excellent implementation of cTrader and Smart Trader Tools
4
4.5/5
The ratings shown on DailyForex.com are determined by hours of research from our editorial team into over 10 factors, including account fees, deposit/withdrawal options, regulatory status, tradable assets, and more.
High level regulation in multiple jurisdictions
Impressive range of tradeable assets including vanilla options and gold options
5
5/5
The ratings shown on DailyForex.com are determined by hours of research from our editorial team into over 10 factors, including account fees, deposit/withdrawal options, regulatory status, tradable assets, and more.
ECN-style trading
Daily market research and Autochartist access

  • FXCM, No dealing desk execution + wide range of trading apps.
  • Forex.com, Excellent trading conditions + NFA regulation.
  • Pepperstone, Great ECN execution on MT4 platform.
  • AvaTrade, Highly regulated, choice of fixed or floating spreads.
  • FP Markets, ECN trading with leverage up to 1:500.

Best Trading API's Brokers Comparison

Regulators
ASIC, CySEC, FCA, FSCAASIC, CFTC, CIMA, FCA, FSA, IIROC, NFAASIC, BaFin, CMA, CySEC, DFSA, FCA, SCBASIC, BVI, Central Bank of Ireland, FFAJ, FSCA, KNF, MiFIDASIC, CySEC, FSCA
Year Established
19992001201020062005
Execution Type(s)
Market Maker, No Dealing DeskMarket MakerNo Dealing Desk, NDDMarket MakerECN/STP
Minimum Deposit
$50
$100
$200
$100
$100
Average Trading Cost EUR/USD
0.6 pips1.1 pips1.1 pips0.9 pips1.1 pips
Average Trading Cost GBP/USD
1.0 pips1.3 pips1.6 pips1.5 pips1.4 pips
Average Trading Cost Gold
0.30 pips$0.63 $0.20 $0.29 $0.21
Trading Platform(s)
Other, MetaTrader 4, Proprietary platform, Web-based+MetaTrader 4, MetaTrader 5, Proprietary platform, Trading ViewMetaTrader 4, MetaTrader 5, cTrader, Trading ViewOther, MetaTrader 4, MetaTrader 5, Web-based+MetaTrader 4, MetaTrader 5, cTrader, Proprietary platform, Web-based
Islamic Account
Negative Balance Protection
N/AN/A

FXCM

In Summary No dealing desk execution + wide range of trading apps

FXCM ranks at the top of Forex brokers with trading APIs, as it features various connection methods FIX protocol API, Java API, and ForexConnect API, besides MT4 APIs, which incidentally FXCM does not mention on its website. FXCM has established itself as a leading Forex broker for algorithmic traders, due to its availability of high-quality data, the backbone of any API trading solutions.

Besides the MT4 and Trading Station, which both support algorithmic trading, FXCM added Capitalise AI for code-free algorithmic trading, enabling all traders to automatize their strategies. TradingView Pro is also available, which features algorithmic technical analysis. Six specialty trading platforms complete the excellent choice of trading solutions at FXCM.

Read more on FXCM »
4.0/5 in this category

Pros & Cons

  • Excellent choice of trading platforms with dedicated support for algorithmic trading
  • Deep liquidity, transparent order executions, and monthly slippage statistics
  • Low-cost commission-based cost structure with a volume-based rebate program
  • Quality research and education via FXCM Plus
  • Somewhat limited asset selection

Forex.com

In Summary Excellent trading conditions + NFA regulation

Forex.com offers a REST API, but traders can also connect to any MT4 API, as Forex.com allows EAs, and the MT4 platform supports API connections. The availability of Capitalise AI, which enables traders to engage in algorithmic trading in a code-free environment, allows beginners to level the playing field. Forex.com established itself among the list of competitive Forex brokers with trading APIs due to its large selection of 80+ currency pairs.

API traders also benefit from superior order execution. The FXCM order execution speed averages 0.05 seconds with a fill rate of 99.99%, while the price improvement technology results in price improvements on 52.36% of orders filled.

Read more on Forex.com »
3.5/5 in this category

Pros & Cons

  • Lower minimum deposit
  • Islamic account available
  • Good reputation
  • Choice of account types
  • Withdrawal fee

Pepperstone

In Summary Great ECN execution on MT4 platform

Pepperstone notes the availability of the FIX API but requires a minimum monthly turnover of $250 million, which places it out of reach of many traders and smaller firms. The MT4 API, available for free online, allows traders to connect their trading solutions to MT4, as Pepperstone fully supports algorithmic trading via EAs. It also has the cTrader API, connecting custom trading solutions to cTrader.

The algorithmic-focused environment, which includes Capitalise AI for code-free algorithmic trading, places Pepperstone among the most-established Forex brokers with trading APIs. Pepperstone fills 99.9% of orders with an average execution speed of 0.03 seconds.

Read more on Pepperstone »
4.5/5 in this category

Pros & Cons

  • Excellent choice of trading platforms consisting of MT4/MT5, and cTrader
  • Market-leading MT4/MT5 upgrade package, Autochartist, and API trading
  • Social trading support via Myfxbook, MetaTrader Signals, and DupliTrade
  • Leverage of up to 1:30 and superb trade execution
  • Demo accounts have 30-day time limits

AvaTrade

In Summary Highly regulated, choice of fixed or floating spreads

AvaTrade does not publicly list the availability of API trading but supports EAs on MT4, meaning the free MT4 API is an option for traders wishing to connect their advanced trading solutions to the MT4 trading environment at AvaTrade. AvaTrade belongs to the group of Forex brokers with trading APIs that do not promote them openly while indirectly offering them on MT4.

Capitalise AI, which enables code-free algorithmic trading, is available at AvaTrade, as this commission-free multi-asset broker slowly transitions from its manual and copy trading environment to embrace algorithmic trading solutions, which account for 80%+ of all daily Forex trading volume.

Read more on AvaTrade »
4.5/5 in this category

Pros & Cons

  • High-quality educational offering via SharpTrader
  • Excellent choice of trading platforms catering to various trading needs
  • Broad asset selection and cross-asset diversification opportunities
  • Well-regulated and trusted broker with oversight from a central bank
  • Trading costs competitive but nothing special

FP Markets

In Summary ECN trading with leverage up to 1:500

Like some brokers, FP Markets does not outline API trading but offers MT4, EAs, and traders can use the open-source and free MT4 API to connect their custom trading solutions to the FP Markets MT4 environment. Therefore, FP Markets ranks amongst the Forex brokers with trading APIs that do not offer direct API connections but support API trading indirectly on MT4.

The recent addition of cTrader grants traders another option to connect their custom solutions via FIX API to the FP Markets trading infrastructure. FP Markets offers a unique MT4 plugin, Stealth Orders, which may interest high-frequency API traders.

Read more on FP Markets »
5.0/5 in this category

Pros & Cons

  • Choice of trading platforms and auxiliary trading tools
  • Very competitive cost structure and excellent asset selection
  • Low minimum deposit requirement and leverage of up to 1:500
  • Well-regulated and trustworthy
  • Availability of Iress geographically restricted

What are APIs?

APIs, short for application programming interfaces, allow two devices to communicate and exchange data. APIs are essential for traders and financial firms to connect their proprietary trading solutions, which often execute complex algorithms powered by machine learning and artificial intelligence, to the trading infrastructure of brokers. Therefore, API traders do not require the trading platforms offered by their brokers.

Most Forex brokers with trading APIs list them publicly, but access may require high deposit minimums and/or monthly trading volumes. The MT4 API, available for free, offers a workaround, but requires the MT4 trading platform and no permissions.

What is a Trading API?

A trading API allows traders to connect their custom trading applications, usually advanced algorithmic ones, to the trading infrastructure of their brokers allowing execution of trades by other means. It makes the trading platforms offered by brokers obsolete unless traders use the MT4 API, which requires the MT4 trading platform to function.

Before connecting a custom trading solution to the trading infrastructure of Forex brokers with trading APIs, traders should develop their trading solution and integrate specific commands/actions supported by the trading API. Skilled developers usually complete the integration, testing, and bug-fixing of a trading API with their proprietary trading solution within two weeks and sometimes can involve a conformance test to ensure functionality of the third-party system.

Pros and Cons of Using Trading APIs

Before traders evaluate specific Forex brokers with trading APIs, they should consider the pros and cons of using them, including associated costs.

The pros of using trading APIs include:

  • Deployment of advanced proprietary trading solutions.
  • Meets demanding trading requirements in a professional environment.
  • MT4 or MT5 API is free and does not require permission from brokers.

The cons of using trading APIs include:

  • Integration and development costs.
  • Brokers may have high minimum deposit requirements or monthly volume conditions for access to well-known APIs.
  • API trading requires ongoing maintenance and potential upgrades to keep custom trading solutions up to date.

Which Forex Brokers have APIs?

Forex brokers with trading APIs continue to grow in number, as algorithmic trading accounts for 80%+ of daily Forex trading volumes, but a complete list is unavailable.

Any Forex broker offering MT4 allows API trading indirectly via the MT4 plugin. The MT4 trading platform is the most versatile and supports algorithmic trading via EAs, which developers must code using the proprietary MQL4 language.

The MT4 API, available for free, allows connections to MT4 in a similar manner to EAs, which run directly on MT4. Therefore, traders can develop custom solutions in their preferred coding language and integrate their proprietary system via MT4 plugins.

Who Can Use APIs for Trading?

Any trader using the MT4 trading platform with a broker allowing algorithmic trading (with a few exceptions, this applies to most MT4 brokers), can use the MT4 API to connect custom trading solutions to the MT4 trading environment. The drawback is that the MT4 API requires the MT4 trading platform, either the desktop client or the lightweight web-based alternative.

Traders who wish to bypass existing trading platforms require Forex brokers with their own proprietary trading APIs, using common standards like FIX protocol, REST, or WebSocket. They should consider the minimum requirements brokers sometimes have in place for access to API trading, which may disqualify them such as deposit minimums or volume thresholds.

How Do I Connect a Forex API to a Broker?

Connecting proprietary trading solutions via a trading API to brokers requires integration via coding and depends on the API.

Here is an overview of how to connect to Forex brokers with trading APIs:

1. Develop a proprietary trading solution in your preferred coding language.

2. Acquire the trading API from your broker (ensure compatibility with your trading solution).

3. Integrate the trading API into your trading solution.

4. Test it in a demo account platform or UAT (user acceptance test) and bug-fix it if necessary.

5. Prior to live trading some brokers require the trader to pass a conformance test.

Here is how to connect the MT4 API to your MT4 trading platform:

1. Download the MT4 API.

2. Upload your script to the MT4 EA library.

3. Click “Tools” and navigate to “Options.”

4. Select the “Expert Advisors” tab and check “Allow DLL imports.”

5. Click the “Auto Trading” button and apply the template of your custom trading solution to each asset you wish to trade (maximum of 100).

Why Do Brokers Use APIs?

Forex brokers with trading APIs have several reasons why they offer them to traders and firms. Some firms will use them for executing their strategies using their own methodologies managed within internal proprietary setups, decision making, and risk management all handled on the client’s side rather than manually on the brokers platform.

MT4 traders should know that they can obtain the MT4 API for free and connect their custom trading solutions to the MT4 trading environment at brokers without requesting permission or fulfilling access criteria. The reason being MT4 supports algorithmic trading via EAs, and the way the infrastructure functions, allows third-party DLLs to connect similarly to EAs running on MT4.

Some of the reasons why brokers use APIs are:

  • Some brokers maintain proprietary trading desks, often as independent subsidiaries, which run custom trading solutions.
  • Brokers who get reimbursed for adding liquidity by third-party liquidity providers want to cater to demanding traders with high trading volumes, which usually require APIs.
  • 80%+ of Forex trading volumes are algorithmic, and brokers compete for high-end clients

Who Would Benefit from API Trading?

The number of Forex brokers with trading APIs continues to grow, and any committed trader will benefit from API trading, but few use them. It requires coding knowledge or capital investments for a team of seasoned developers to integrate APIs into custom trading solutions and constant refinement, which often incurs ongoing investment into development time and costs associated with this.

Since 80%+ of daily Forex trading volumes are algorithmic, manual traders, usually retail traders, and beginners trade with an extreme disadvantage in certain situations. Many lack the capital to create the necessary trading infrastructure that requires APIs, and most fail to develop a manual trading strategy worth coding.

Bottom Line

Most traders struggle to trade profitably. The main obstacles are trading psychology and manual trading. Many traders avoid discussing manual trading because it puts them at a disadvantage compared to algorithmic trading, which accounts for over 80% of daily Forex trading volumes.

Forex brokers with trading APIs allow traders to connect custom trading solutions to their trading infrastructure, bypassing trading platforms, but bandwidth restrictions may exist. Access restrictions apply, except for the MT4 API, which some brokers do not advertise, but it is available for free and requires no special permission, as it connects similarly to EAs.

You might also be interested in reviewing the below top brokers:

FAQs

Which Forex broker provides an API?

expand.png

Every Forex broker with the MT4 platform supports API trading but usually doesn’t mention it. A few brokers offer a range of APIs and list them on their websites with access restrictions and minimum requirements.

Is a Forex API free?

expand.png

The MT4 API is free, and Forex brokers with trading APIs offer them for free if traders meet minimum requirements. Otherwise, they restrict access to APIs.

Does MetaTrader have an API?

expand.png

Yes, MetaTrader has several APIs, which are often available for free.

Christopher Lewis
About Christopher Lewis

Christopher Lewis has been trading Forex for several years. He writes about Forex for many online publications, including his own site, aptly named The Trader Guy.