Jump to content
  • 0

Does the API support individual equity price history?



Hi everyone who reads,

I'm trying (so far unsuccessfully) to develop some code that will scan a whole market (i.e. all stocks within ASX200 or S&P500) and alert me when any of the stocks touch some specific moving averages I'm looking for. But first I'm trying to back test this for the past 6 years.

Using the API companion and I know I'm authenticating correctly.

It works with the Russell Index:

And with FTSE:

The problem comes when I try a single equity, in this case Fortescue Metals, or AA.D.FMG.DAILY.IP. Can search market details successfully:

But if I try searching historical prices during a time period I get a:

"errorCode": "unauthorised.access.to.equity.exception"


I'm reading in a couple of older posts that IG does not support equity price history over APIs... is this true?

Link to comment

2 answers to this question

Recommended Posts

  • 0

The IG API does not support equity dealing or price history at all. The IG API can be used to trade spread bets (or CFDs) on equities, indices, FX, commodities, bonds, rates VIX etc. Its important to understand the difference.

The error you are seeing is misleading. It seems that in certain cases you can use the API to trade a market, but historic price data is not available for that same market. I came across the same error message when trying to get historic prices for a dated spread bet on the VIX. When queried with support, the response was not very clear. Reading between the lines, my interpretation was that IG's licence for the historic price data does not allow IG to pass it on to us via the API.

Regarding your project to "scan a whole market" - can I offer a suggestion? A would find another way to get historic prices. The IG API is not a good resource for this sort of thing. You are limited to 10,000 data points of historic prices per week. I would imagine you would need at least hourly data for your price scanner. So, 8 hours a day, 5 days a week, 200 shares in the ASX, 500 in the S&P, 100 in the FTSE, and 2000 in the Russell. You're going to be about 100,000 datapoints short, every week. Even daily prices is too many


  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • image.png

  • Posts

    • As a meme fan, I have been waiting patiently for the Bull trend that happened to BTC recently to get to all the alts and so we can have what we had back then in 2021 to happen again, but time the strength of the uptrend has not been able to match up with what I am expecting and I do hope that the halving will help, but looking at the hype that is usually expected from the meme community. I don't think I'll be able to wait for the trend to resume and so I am taking more steps ahead of the game, taking up all the opportunities I believe would help the price-trend of my holdings, especially for the DOGE memes and I have found this DOGEDAY event ongoing and it really made a lot of sense to me, because if we look at how the DOGE coins have performed in the past. I believe if we can have a Bitcoin day to celebrate the first cryptocurrency, then we should be able to have a DOGEDAY too looking at the success rate of the meme and the support from the community. For me, this is something special that is worth the energy, vibes and hype and worth participating it. There are different sections to the event, which include the Twitter part, where Bitget is sharing $3,00 to those participating( https://twitter.com/bitgetglobal/status/1780495739984150962Twitter Post ) and the telegram event, and I believe this will favour those that love to bet on the price of coins. They are sharing 100BGB tokens for this and the Discord event has a 90BGB token to be shared.  If we can have Bitcoin's day, then this DOGEDAY should be observed in all the DOGE communities and I will admonish meme lovers to observe events like this because it reflects the nature of memecoin and the hype around it.
    • Would love to grab it below 100!
  • Create New...