Skip to content

OTC leveraged products, including CFDs, are complex investments, which come with a high risk of losing money rapidly due to leverage. 80% of retail client account lose money when trading OTC leveraged products, including CFDs, with this investment provider. OTC leveraged products, including CFDs, are complex investments, which come with a high risk of losing money rapidly due to leverage. 80% of retail client account lose money when trading OTC leveraged products, including CFDs, with this investment provider.

Trading APIs

Connect your platform to IG's trading APIs and trade forex, commodities, indices, and more with competitive pricing and round the clock support.

Bundled foreign currency notes

What is API trading?

API stands for application programming interface. API trading is a method of trading in which a trader's software connects directly to a broker's trading system through an application programming interface (API).

What can you do with a trading API?

Automate your trading strategies

Code rules based strategies that enter and exit positions automatically, based on your own logic and market conditions.

Build custom dashboards

Pull live prices and account data into your own interface, built around how you actually trade.

Access historical price data

Download historical prices to backtest strategies or run your own analysis outside a charting platform.

Why use IG’s trading APIs?

Institutional-grade access

Take advantage of DMA and OTC products with our FIX API via IG's institutional service.

Third-party compatible

Use alongside third-party software such as Excel (VBA), .NET, and Java to fit straight into your existing workflow.

Flexible API options

Build bespoke trading solutions with our web-based APIs, either REST-based or streaming.

API trading markets and costs

  • Forex
  • Indices
  • Commodities
  • Cryptos
Market Minimum spread
EUR/USD 0.6
AUD/USD 0.6
EUR/GBP 0.9
GBP/USD 0.9
Market Minimum spread
Hong Kong HS50 5
Wall Street 2.4
US Tech 0.4
Australia 200 1

Market Minimum spread
Spot Gold 0.3
Spot Silver 2
Oil - US Crude 2.8
Oil - Brent Crude 2.8

Market Minimum spread
Bitcoin 38
Ether 1.2
Bitcoin Cash 2

Spreads are subject to variation, especially in volatile market conditions

Routes to trading with APIs

Directly through IG's API

You'd do this if you want to build your own trading platform.

  • Create a live IG account
  • Generate an API key
  • Connect to the IG API using our Excel app or start coding
  • Understand the risks and costs of trading before you open your first trade

Via ProRealTime

You’d do this if you want to send IG trades from a custom interface you have built.

  • Create a live IG account
  • Launch ProRealTime
  • Build your own algorithms
  • Start trading

FAQs

What is a trading API?

A trading API (application programming interface) is a program that connects your software directly to a broker's trading system, allowing you to access live market data, historical prices and trade execution without manual intervention.

 

What markets can I trade using IG's APIs?

You can trade forex, indices, commodities, cryptos, and more.

 

Can I use IG's trading APIs with Excel or other third-party software?

Yes, IG's APIs work alongside third-party software including Excel (VBA), .NET and Java.

 

Try these next

Trade and analyse the markets with advanced charting and automated strategies.

Learn how to automate your trading strategies with IG.

Explore automated trading and technical analysis with MT4.