Jump to content
  • 0

Difference between app and account on non trading API limits


CNDK

Question

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?

Link to comment

10 answers to this question

Recommended Posts

  • 0
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

- KoketsoIG

Link to comment
  • 0

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.

Link to comment
  • 0
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
Link to comment
  • 0
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

- KoketsoIG

Link to comment
  • 0
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
Link to comment
  • 0
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
Link to comment
  • 0
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?

Link to comment
  • 0

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?

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
×
×
  • Create New...
us