Jump to content
  • 0

Difference between app and account on non trading API limits


CNDK

Question

Posted

Hi IG-team,

I have been experimenting with your api, and dont understand the difference between Per-app and Per-account no trading limits.

image.thumb.png.e009059e0afaf4c13db908fe4d873419.png

The way I read it is that i can make 60 calls per minute per application, and since i have 2 trading accounts those 60 calls are divider over those 2 accounts, so 30 for each. Basically I should be able to make 29 calls from account_1, switch account_2 to my preferred account, and make another 30 calls from account_2, all within 1 minute. 

This doesn't seem to work, so how should I understand the differences between Per-app and Per-account?

10 answers to this question

Recommended Posts

  • 0
Posted
17 hours ago, CNDK said:

Hi IG-team,

I have been experimenting with your api, and dont understand the difference between Per-app and Per-account no trading limits.

image.thumb.png.e009059e0afaf4c13db908fe4d873419.png

The way I read it is that i can make 60 calls per minute per application, and since i have 2 trading accounts those 60 calls are divider over those 2 accounts, so 30 for each. Basically I should be able to make 29 calls from account_1, switch account_2 to my preferred account, and make another 30 calls from account_2, all within 1 minute. 

This doesn't seem to work, so how should I understand the differences between Per-app and Per-account?

Dear @CNDK,

Thank you for your post.

Please note that the 60 per app applies to the overall application, and 30 per account refers to individual accounts. You are correct in assuming that you should be able to send a max of 60 (combined - from different accounts) non-trading requests within a minute.

Can you kindly provide the specific error you were receiving so that our technical team can look into it?

Thanks,

Koketso

Please rate us on Trustpilot: IG Trustpilot 

  • 0
Posted

Hi KoketsoIG,

I get the following message: 

"errorCode": "error.public-api.exceeded-api-key-allowance"

I'm trying in the api companion but i get the same error in both prod and demo.

  • 0
Posted
2 hours ago, KoketsoIG said:

Dear @CNDK,

Thank you for your post.

Please note that the 60 per app applies to the overall application, and 30 per account refers to individual accounts. You are correct in assuming that you should be able to send a max of 60 (combined - from different accounts) non-trading requests within a minute.

Can you kindly provide the specific error you were receiving so that our technical team can look into it?

Thanks,

Koketso

Hi KoketsoIG,

I get the following message: 

"errorCode": "error.public-api.exceeded-api-key-allowance"

I'm trying in the api companion but i get the same error in both prod and demo.

  • Like 1
  • 0
Posted
3 hours ago, CNDK said:

Hi KoketsoIG,

I get the following message: 

"errorCode": "error.public-api.exceeded-api-key-allowance"

I'm trying in the api companion but i get the same error in both prod and demo.

Dear @CNDK,

Thank you for your response.

You are kindly advised to monitor your requests closely and ensure you are not requesting more than the specified limits. 

All the best,

KoketsoIG

Please rate us on Trustpilot: IG Trustpilot 

  • 0
Posted
13 hours ago, KoketsoIG said:

Dear @CNDK,

Thank you for your response.

You are kindly advised to monitor your requests closely and ensure you are not requesting more than the specified limits. 

All the best,

KoketsoIG

Hi KoketsoIG,

The issus is that I don't even reach my limit before I get the error: 

"errorCode": "error.public-api.exceeded-api-key-allowance"

This is my test:

1) In api companion i login to me Live og Demo account (same problem in both environments)

2) I wait for at least a minute to my login doesn't influence the test

3) I make 25 GET /marketnavigation requests

4) I switch the account to my second account with the PUT /session request

5) I should now be able to make 30 GET /marketnavigation requests, but I get the error after just 4 requests

From your previous answer I should be able to make 60 requests per-app per minute, but I can only make 30. 

What am I doing wrong?

  • Like 1
  • 0
Posted
2 hours ago, CNDK said:

4) I switch the account to my second account with the PUT /session request

I think there is an issue when switching accounts. I have seen similar behaviour where my request limit appears to be exceeded even though I am only making 2/3 calls. 

There was another thread on this:

But so far no response/resolution.

Can somebody at IG look into this again?

Thanks

  • Like 1
  • 0
Posted
On 16/04/2024 at 05:51, CNDK said:

Hi KoketsoIG,

The issus is that I don't even reach my limit before I get the error: 

"errorCode": "error.public-api.exceeded-api-key-allowance"

This is my test:

1) In api companion i login to me Live og Demo account (same problem in both environments)

2) I wait for at least a minute to my login doesn't influence the test

3) I make 25 GET /marketnavigation requests

4) I switch the account to my second account with the PUT /session request

5) I should now be able to make 30 GET /marketnavigation requests, but I get the error after just 4 requests

From your previous answer I should be able to make 60 requests per-app per minute, but I can only make 30. 

What am I doing wrong?

Dear @KoketsoIG

Can you please help me with my question?

  • 0
Posted

Hi @KoketsoIG

Does "per app" refer to the IG application, or to a user client application?

My reading of the limits was that "per app" referred to a user application, ie API key. When you request an API key, you have to provide an application name - I always assumed that was the app.

It used to be possible to have multiple API keys per user account, so in that context it would make sense to have a different limit per application AND per account.

But (as I understand it) now it is only possible to have one API key per account, ie one for LIVE and one for DEMO. So now, that limit of 60 per application makes no sense.

Could you check with the API team please? And maybe ask them to update the page showing the limits, so it is more clear?

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