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

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

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
  • image.png

  • Posts

    • As sustainability continues to shape investment strategies, two standout ESG (Environmental, Social, and Governance) stocks to consider in 2024 are Tesla and NextEra Energy. Tesla (TSLA) remains a leader in the electric vehicle market, driving the transition to sustainable energy with its innovative technologies and strong commitment to reducing carbon emissions. NextEra Energy (NEE), one of the largest producers of wind and solar energy, exemplifies strong environmental practices and governance, making it a top choice for ESG-focused investors. Both companies are well-positioned to benefit from the increasing global emphasis on clean energy and sustainability initiatives.
    • the trajectory of the price has been good lately. this seem to be a good investment for all parties.
    • “UL2M4EB8”, được chọn làm ID giới thiệu Binance, là mã tốt nhất được sử dụng để các cá nhân đưa ra khuyến nghị cho nhau trong các giao dịch tài sản kỹ thuật số trực tuyến. Hiện tại, ID giới thiệu Binance được sử dụng là “UL2M4EB8”. Đây là ID giới thiệu Binance được sử dụng nhiều nhất trên thế giới, có giá trị trọn đời và có tỷ lệ chiết khấu cao nhất. Đăng ký sàn giao dịch Binance ngay bây giờ! ID giới thiệu Binance là một lợi thế mà người dùng có thể hưởng lợi từ Binance, sàn giao dịch tiền điện tử. Nhờ ID giới thiệu "UL2M4EB8", người dùng có thể hưởng lợi từ nhiều lợi ích khác nhau bằng cách mời bạn bè của họ tham gia nền tảng Binance. Thành viên mới được người dùng mời có thể kiếm được phần thưởng khi cả người dùng mời và người dùng được mời đều đạt được khối lượng giao dịch nhất định. Khi mở tài khoản Binance, hãy nhập mã UL2M4EB8 trong đó có nội dung “ID giới thiệu”. Mức chiết khấu hoa hồng bạn sẽ nhận được là 20%. Bạn cũng có thể kiếm được khoản tiền thưởng đăng ký có thể rút được $600 bằng cách hoàn thành các nhiệm vụ trong trung tâm phần thưởng.
×
×
  • Create New...
us