Getting started

To begin using our API all you need to do is:

  • Create an account
  • Generate your API key
  • Start coding

Create a live account

To use our API you will need an IG account. If you don't already have one you can apply for one here.

Generate your API key

For each application you develop you will need an API key. The API key identifies your application and authorises its use.

To create your live API key:

  • Log into our web-based platform using your live account details
  • Go to My Account > Settings > API Keys
  • Enter your key name and click GENERATE NEW KEY

Create a demo account

We recommend that you open a demo account so you can test your application in a safe environment. You can open a demo account as follows:

  • Login to the web trading platform with your live account
  • Use the account switcher on the top left of the page to create a demo account

Generate your demo API key

  • Log into our web-based platform using your live account details
  • Use the account switcher to switch to demo
  • Go to My Account > Settings > API Keys
  • Enter your key name and click GENERATE NEW KEY
  • Choose your demo environment login credentials

Start coding

You can now begin coding using any programming language that supports HTTP. Get started by referring to our guides on the left, or by trying out your demo account on one of our sample applications. We suggest to use the API companion and Streaming companion to explore the API.

N.B:
  • Date and time values are ISO 8601 formatted and in UTC time zone unless otherwise stated.

Some restrictions apply

  • Direct market access is not currently available for our APIs
  • Shares trading is available but without share price information
  • Each API key is subject to standard usage quotas. Please contact us if you'd like to increase your allowance

Subscribe to updates

  • News and updates about the API will be posted via Twitter on @IGLabs #webapi
  • To query a list of recent API changes please use the release hashtag: @IGLabs #webapi #release