Jump to content
  • 0

Does the API support individual equity price history?


icarus33

Question

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?

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

    • The BLUM project has recently gained attention in the cryptocurrency community due to several developments such as  Introduction of a mining game on the TON ecosystem, allowing users to earn $BLUM tokens.  Announcement of new strategic partnerships Upcoming features including Tribes and Memepad functionalities.  Active community engagement through events and rewards 5. Recognition from notable figures in the crypto space Key upcoming events: Token Generation Event (TGE) for the BLUM mining game scheduled for September 20, 2024 Coinciding airdrop of BLUM tokens to the community The project plans to provide liquidity on centralized exchanges such as Bitget and Binance, as well as decentralized exchanges like Uniswap, Curve, and PancakeSwap. These developments have contributed to increased discussions about BLUM on social media platforms, particularly Twitter. As the crypto landscape evolves rapidly, interested individuals are encouraged to stay informed about BLUM's progress through official channels and related TON communities like r/TONDiscussion.  As with any cryptocurrency project, potential participants should conduct thorough research and consider their own risk tolerance before engaging.
    • Counter Fire is poised to redefine the gaming industry with its innovative blend of competitive gameplay and blockchain technology. The game offers multiple modes, including team-based matches of quads, duos, and solos along with solo missions, with deep customization options and dynamic battle scenarios. While the core gameplay of Counter Fire is similar to PUBG, a battle-royal where the last-man or last-team standing wins in a survival gameplay, users earn while playing Counter Fires. The project has been buzzing the ecosystem as the airdrop claim went live today so users can claim their $CEC and await listing on 9th Sept. While gamers continue to claim their tokens, some analysts have start speculating that the project will redefine the gaming landscape citing the project partnership with likes of YoubiCapital, HASHKEY, KERNEL ventures and many more and the fact that the project raised over $5 million as the base for their argument. The project partnership with Bitget could also be a reason it continues to gain such exposure as players can only claim their token to the exchange. Though, as players claim their token to the exchange, they could benefit some reward from the 1 million $CEC reward pool. I still think many exchanges should list the token so gamers can have many choices.
    • Hi @feirb1, Thank you for your post. Please note that we offer T-Bills for trading on leveraged accounts. By trading these, you will be speculating on the price movements. This means that, when trading, you´ll never take ownership of an actual t-bill. Instead, you´ll take a position on the market either rising in value or falling. Thanks, KoketsoIG
×
×
  • Create New...
us