Jump to content
  • 1

Access historical data


Michael1964

Question

Posted

Can anyone advise me on how to obtain all the pricing data (1 min resolution) on IG for the past 10 years? I'm doing a research paper and need to run simulations which I'm happy to share with anyone who can help. I cannot seem to retrieve much via the API companion, given the 10,000 data points limit. The IP companion also doesn't appear to provide 1 min resolutions. I can only get 10 min resolutions. 
Is there anyone who can help me with the harvesting of the data? 

6 answers to this question

Recommended Posts

  • 0
Posted
16 hours ago, bug-or-feature said:

My advice would be to not attempt to do anything like this. "All the pricing data at 1min resolution" is an absurd amount of data. The IG platform is not a good place to try anything like this, due to the number of markets on offer, and the rate limitations.

There are plenty of other platforms where you can obtain financial pricing data, either paid or free

Thank you for your response. Rate limitations indeed.
Unfortunately my research is based on a spread hypothesis of all the indices on IG. 
I've looked at other platforms but cannot find anything that covers all the indices. Which platform would you recommend as being the most comprehensive? 

  • 0
Posted

Ah, well firstly "all the indices on IG" is a lot less than "all the pricing data". It's still a lot. Spread bets, CFDs, something else?

A lot depends what your hypothesis is. Are you investigating spread values? If so, you could get the prices from somewhere else, and sample the IG spread using the Streaming API. With that API you can be subscribed to 40 instruments concurrently. See here

Platform choice is a big subject, probably not a question for this forum - I'm sure you have great Google skills being a researcher. But you could start with Yahoo Finance, Google Finance or AlphaVantage

  • Like 1
  • 0
Posted
18 hours ago, SmitBret said:

First, you can use the IG API with pagination and aggregation. Although the IG API has a limit of 10,000 data points per request, you can paginate through the data and aggregate it yourself. This will involve writing a script that requests data in chunks and then stitches them together. To do this, you need to determine the date range by calculating the total number of minutes in 10 years, set up pagination by making API requests in a loop, each time requesting the next chunk of 10,000 data points until you have covered the entire date range, and handle API limits by incorporating necessary delays between requests to avoid getting blocked.

Unhelpful - the IG API for historic data has a limit of 10,000 data points per week, not per request. See

https://labs.ig.com/faq.html

under "Limits"

  • -1
Posted

My advice would be to not attempt to do anything like this. "All the pricing data at 1min resolution" is an absurd amount of data. The IG platform is not a good place to try anything like this, due to the number of markets on offer, and the rate limitations.

There are plenty of other platforms where you can obtain financial pricing data, either paid or free

  • Like 1
  • Thanks 1
  • -1
Posted

First, you can use the IG API with pagination and aggregation. Although the IG API has a limit of 10,000 data points per request, you can paginate through the data and aggregate it yourself. This will involve writing a script that requests data in chunks and then stitches them together. To do this, you need to determine the date range by calculating the total number of minutes in 10 years, set up pagination by making API requests in a loop, each time requesting the next chunk of 10,000 data points until you have covered the entire date range, and handle API limits by incorporating necessary delays between requests to avoid getting blocked.

If the IG API is not feasible, consider alternative data sources. Services like Quandl, EOD Historical Data, or Alpha Vantage may offer historical minute-by-minute data, though some of these services might require a subscription. Brokerage platforms or brokers like Interactive Brokers or MetaTrader might also provide extensive historical data to their customers.

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

    • With Bitcoin aiming for a new ATH, this staking might be the best option to maximum holding
    • Tbh, trading can be frustrating, I keep trying different strategy to perfect my trading skill but all seems to be in vain. Recently, I learnt we can use AI to predict the market to trade, so I decide to start asking AI to analyze when btc is overbought so I can look for short entry but this seems not to work against as most trade I enter end up hitting my SL. I know this is part of the learning process so I don’t risk too much but it hurt to lose fund especially when you are trying your best to make your first positive trade. Sometime, I just feel the market is totally against me and that further discourages me from futures trading. Recently, I got introduced to BTC staking on some platforms like BGBTC on bitget, Babylon chain, Solv protocol, Coredao etc but that doesn’t quench my hunger to understand BTC volatility since I will just stake my btc and earn apr. I want to understand how this volatility works so I can start making something from futures trading rather than just staking to earn apr. Also, I feel staking is for spot traders that intend to hold for a longer period and that doesn’t expose you to the market. I am not like most trader that prioritize profit over knowledge even when that is the final goal.
    • $ETH will surpass ATH this month and hit $7-8k next year
×
×
  • Create New...
us