Jump to content
  • 1

error.public-api.exceeded-account-historical-data-allowance


SergioLage

Question

Hi, 

I am using REST API to get historical values (DAY resolution) so I can back test my trading algorithm. I am sure I haven't reach the 10,000 points / historical limit in this week, but I got this error and it seems I will have to wait for 7 days before being able to work with it again. It seems to me there is an issue with the 10,000 points. Is anyone else facing a similar problem with this limit?

Also, is there any plan to have a more flexible limit? I mean, limits related to rate and not to the amount of data?

 

Thanks! 

 

  • Like 1
Link to comment

8 answers to this question

Recommended Posts

  • 0
9 hours ago, SergioLage said:

Hi, 

I am using REST API to get historical values (DAY resolution) so I can back test my trading algorithm. I am sure I haven't reach the 10,000 points / historical limit in this week, but I got this error and it seems I will have to wait for 7 days before being able to work with it again. It seems to me there is an issue with the 10,000 points. Is anyone else facing a similar problem with this limit?

Also, is there any plan to have a more flexible limit? I mean, limits related to rate and not to the amount of data?

 

Thanks! 

 

Hi @SergioLage

Thanks for reaching out. 

You might have to retrieve one point of data and you will be able to see what's left of your allowance. But if you have used up all your data then the error historical allowance exceeded will confirm. 

We can only provide 10,000 points for all our clients. 

Thanks,

OfentseIG
 

Link to comment
  • 0

I see. But I used the "max" parameter to limit the number of returned points, so how this happened? It seems to me it something is not working ok. Could someone take a look? The URL I used is https://api.ig.com/gateway/deal/prices/CC.D.LCO.UMA.IP?resolution=DAY&from=2012-06-07T00:00:00&to=2020-12-31T00:00:00&pageSize=0&max=5

 

Also, in order to test the algorithms the DEMO account should be more flexible, and not the other way around. Any plans to have more flexibility in the DEMO account?

 

Thanks!

 

Link to comment
  • 0

Same issue as @SergioLage allowance maxed out early last week. I don't normally get anywhere near the limit. Also to make matters worst the allowance hasn't reset this week - it normally resets every Sunday I think. @OfentseIG can you take a look at what has happened, please? This is blocking me.

Link to comment
  • 0

Hi @mattz00. I had to way for 7 days to be able to get the data again. I removed the "max" parameter and now I control the allowance by myself to avoid getting into this situation again. I still think there is a bug regarding this control. Also, it makes no sense to me having this in a demo environment, basically used to test the code and the algorithms we are developing. There are other ways to avoid issues regarding the infrastructure.

Link to comment
  • 0

Maybe I was about wrong the expiry time. Creating a new api key fixed the issue for me. Im starting to track the allowance result now. I'm sure there is a bug in how its calculated.

Link to comment
  • 0

Hello,
I get this error when calling historical data via API :

Exception: error.public-api.exceeded-account-historical-data-allowance

However, both API companion (using the same credentials) reports 

            "remainingAllowance": 9450,
            "totalAllowance": 10000,
            "allowanceExpiry": 524396
and the Excel IG Web trading API allow me to call in historical data !!!
It must be my Python code right ?
How can I find out the problem if the reported error is "exceeding limits" ?
Here is the request to make sure I am not going mad.
Help please...
result = ig_service.fetch_historical_prices_by_epic(epic ="CS.D.EURUSD.CFD.IP", resolution ='D', numpoints=10)
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
  • General Statistics

    • Total Topics
      23,622
    • Total Posts
      97,004
    • Total Members
      44,184
    • Most Online
      7,522
      10/06/21 14:53

    Newest Member
    Richard0000
    Joined 05/12/23 13:22
  • Posts

    • Dive into DAX's record-breaking run, fuelled by Eurozone inflation easing. Explore market dynamics, technical analysis, and potential risks.   Source: Bloomberg   Indices Inflation DAX Eurozone Technical analysis Interest  Tony Sycamore | Market Analyst, Australia | Publication date: Tuesday 05 December 2023 05:46 Last week marked a historic fifth consecutive gain for the DAX, echoing patterns not seen since October 2022. The DAX’s gains last week were supported by a Eurozone inflation report, which showed inflation eased to 2.4% in November, its lowest level since July 2021. Core inflation fell to 3.6% in November from 4.2% in October. With disinflation in Europe playing out much like in the US, it's no surprise that the European interest rate curve is pricing in five 25bp ECB rate cuts by the end of 2024. The UK rates market isn’t quite as excited about BoE rate cuts. Although headline inflation has fallen from 10.7% to 4.6% last month, core inflation at 5.7% is still too high. This explains why the UK rates market is pricing in just two and a half BoE rate cuts in 2024. The contrasting inflation and interest rate outlook between the Eurozone and the UK helps to explain why the DAX gained 9.41% in November while the FTSE gained only 1.8% during the same time. FTSE daily chart   DAX technical analysis Like its US counterpart, the S&P 500, the DAX has gotten very close, but thus far, failed to break above its year-to-date highs. As viewed on the RSI, the DAX is at extremely overbought levels, and while we remain bullish into year-end, we would not contemplate opening fresh longs at these levels. Instead, we would prefer to use dips back towards support at 16,100/16,000, looking for the DAX to retest and break above the 16,615 July high in the weeks ahead. Aware that a sustained break below the support of the 200-day moving average at 15782 would warn that the rally has run its course and that a deeper pullback is underway. DAX daily chart   Source: TradingView Source Tradingview. The figures stated are as of 5 December 2023. Past performance is not a reliable indicator of future performance. This report does not contain and is not to be taken as containing any financial product advice or financial product recommendation.     This information has been prepared by IG, a trading name of IG Markets Limited. In addition to the disclaimer below, the material on this page does not contain a record of our trading prices, or an offer of, or solicitation for, a transaction in any financial instrument. IG accepts no responsibility for any use that may be made of these comments and for any consequences that result. No representation or warranty is given as to the accuracy or completeness of this information. Consequently any person acting on it does so entirely at their own risk. Any research provided does not have regard to the specific investment objectives, financial situation and needs of any specific person who may receive it. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research and as such is considered to be a marketing communication. Although we are not specifically constrained from dealing ahead of our recommendations we do not seek to take advantage of them before they are provided to our clients. See full non-independent research disclaimer and quarterly summary.
    • Stocks continue to trim the gains made in November. Following a lower session on Wall Street, Asian indices came under pressure. The Nikkei hit a three-week low, while the Hang Seng index touched a fresh one-year low as funds continued to flow out of Chinese indices. The RBA left rates unchanged, and the dovish tone of the statement caught some by surprise. It said that future rate changes would depend on data. In China the Caixin services PMI hit a three-month high of 51.5, but this did little to boost sentiment towards Chinese stocks. European and US markets are expected to open lower, ahead of the US ISM services PMI, and as the focus turns to the monthly US job reports this week.  
    • Lisk goal of onboarding 100m users into crypto and web3 will undoubtedly aid the adoption of Web3 and cryptocurrency industry. By offering an accessible blockchain application platform and an industry leading JavaScript SDK, it won't be long before this is achieved 
×
×
  • Create New...
us