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:
https://api.ig.com/gateway/deal/prices/IX.D.RUSSELL.IFM.IP?resolution=DAY&from=2015-07-21T00%3A00%3A00&to=2024-03-21T23%3A59%3A59
And with FTSE:
https://api.ig.com/gateway/deal/prices/IX.D.FTSE.CFD.IP?resolution=DAY&from=2015-07-21T00%3A00%3A00&to=2024-03-21T23%3A59%3A59
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:
https://api.ig.com/gateway/deal/markets/AA.D.FMG.DAILY.IP
But if I try searching historical prices during a time period I get a:
"errorCode": "unauthorised.access.to.equity.exception"
(https://api.ig.com/gateway/deal/prices/AA.D.FMG.DAILY.IP?resolution=DAY&from=2015-07-21T00%3A00%3A00&to=2024-03-24T23%3A59%3A59)
I'm reading in a couple of older posts that IG does not support equity price history over APIs... is this true?