Jump to content
  • 0

Changes in the API behvaiour


magico

Question

Hallo all,

recently i see a different behaviour using the API. 

My code is just asking for 5 data points every 5 minutes. That is well below the limits given in the FAQ.
Additionally i have one Streaming API connected for about 6 hours two times a day.

That behaviour worked well for almost 6 months now. Finally since one week i see that my streaming API connection is dropped after some hours. 
When i try then to login i get the following error code 

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

 

I really dont get what has changed meanwhile. After some hours it is then working again.
Can some one can give me further input why the connection is stopped even after two hours?

 

Bye,

Florian

 

Link to comment

6 answers to this question

Recommended Posts

  • 0
15 hours ago, magico said:

Hallo all,

recently i see a different behaviour using the API. 

My code is just asking for 5 data points every 5 minutes. That is well below the limits given in the FAQ.
Additionally i have one Streaming API connected for about 6 hours two times a day.

That behaviour worked well for almost 6 months now. Finally since one week i see that my streaming API connection is dropped after some hours. 
When i try then to login i get the following error code 

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

 

I really dont get what has changed meanwhile. After some hours it is then working again.
Can some one can give me further input why the connection is stopped even after two hours?

 

Bye,

Florian

 

Hey @magico,

Welcome to the IG community!

Please check out our web companion for API: API companion

All the best!

KoketsoIG

- KoketsoIG

Link to comment
  • 0
On 23/01/2024 at 11:19, KoketsoIG said:

Hey @magico,

Welcome to the IG community!

Please check out our web companion for API: API companion

All the best!

KoketsoIG

@KoketsoIG: Thanks for your feedback.

I am aware of the API companion and your reference.

Regarding the limits i read:

  • What are the default Streaming API limits?

    40 concurrent subscriptions
  • Can I increase my streaming API limits?

    Your limit may be managed by unsubscribing and subscribing as required. Please do not create multiple concurrent connections as this may lead to your API key being suspended
 
Right now it is happening again. My code has an active subscription for about 3 hours.  My API is giving error while connection:
"errorCode": "error.public-api.exceeded-api-key-allowance"
 
Please give me further information how to deal with that. 
 
Thanks,
Florian
Edited by magico
  • Like 1
Link to comment
  • 0
16 hours ago, magico said:

@KoketsoIG: Thanks for your feedback.

I am aware of the API companion and your reference.

Regarding the limits i read:

  • What are the default Streaming API limits?

    40 concurrent subscriptions
  • Can I increase my streaming API limits?

    Your limit may be managed by unsubscribing and subscribing as required. Please do not create multiple concurrent connections as this may lead to your API key being suspended
 
Right now it is happening again. My code has an active subscription for about 3 hours.  My API is giving error while connection:
"errorCode": "error.public-api.exceeded-api-key-allowance"
 
Please give me further information how to deal with that. 
 
Thanks,
Florian

Dear @magico,

Please note that you know that you receive a weekly allowance of 10k data points. If you happen to use up your allowance, you may encounter an error and will have to wait for the weekly limit to reset.

image.png

Thanks,

KoketsoIG

- KoketsoIG

Link to comment
  • 0
4 hours ago, KoketsoIG said:

Dear @magico,

Please note that you know that you receive a weekly allowance of 10k data points. If you happen to use up your allowance, you may encounter an error and will have to wait for the weekly limit to reset.

image.png

Thanks,

KoketsoIG

Dear @KoketsoIG

thank you for providing feedback. I am aware of your limits and adapt everything to be below them.

I have added some further output below. 

It seems that there might be an easy with the server. It seems that connection is simply lost.
Is there a possbility to comment from this side?

 

Thanks,

Florian

 

 

13:20:13.730 : Connection update received at:26/01/2024 13:20:13 Message:STALLED
13:20:16.852 : Connection update received at:26/01/2024 13:20:16 Message:CONNECTED:WS-STREAMING
13:28:22.542 : Connection update received at:26/01/2024 13:28:22 Message:STALLED
13:28:24.898 : Connection update received at:26/01/2024 13:28:24 Message:DISCONNECTED:TRYING-RECOVERY
13:28:25.109 : Connection update received at:26/01/2024 13:28:25 Message:CONNECTED:STREAM-SENSING
13:28:25.465 : Connection update received at:26/01/2024 13:28:25 Message:CONNECTED:WS-STREAMING
13:32:35.860 : Connection update received at:26/01/2024 13:32:35 Message:STALLED
13:32:38.069 : Connection update received at:26/01/2024 13:32:38 Message:CONNECTED:WS-STREAMING
14:08:36.026 : Connection update received at:26/01/2024 14:08:36 Message:DISCONNECTED

 

Link to comment
  • 0
43 minutes ago, magico said:

Dear @KoketsoIG

thank you for providing feedback. I am aware of your limits and adapt everything to be below them.

I have added some further output below. 

It seems that there might be an easy with the server. It seems that connection is simply lost.
Is there a possbility to comment from this side?

 

Thanks,

Florian

 

 

13:20:13.730 : Connection update received at:26/01/2024 13:20:13 Message:STALLED
13:20:16.852 : Connection update received at:26/01/2024 13:20:16 Message:CONNECTED:WS-STREAMING
13:28:22.542 : Connection update received at:26/01/2024 13:28:22 Message:STALLED
13:28:24.898 : Connection update received at:26/01/2024 13:28:24 Message:DISCONNECTED:TRYING-RECOVERY
13:28:25.109 : Connection update received at:26/01/2024 13:28:25 Message:CONNECTED:STREAM-SENSING
13:28:25.465 : Connection update received at:26/01/2024 13:28:25 Message:CONNECTED:WS-STREAMING
13:32:35.860 : Connection update received at:26/01/2024 13:32:35 Message:STALLED
13:32:38.069 : Connection update received at:26/01/2024 13:32:38 Message:CONNECTED:WS-STREAMING
14:08:36.026 : Connection update received at:26/01/2024 14:08:36 Message:DISCONNECTED

 

Dear @magico,

Thank you for your response.

Please note we have escalated your query to our IT ops team and will provide feedback as soon as they have given us an update.

Have a great weekend,

KoketsoIG

  • Like 1

- KoketsoIG

Link to comment
  • 0
On 26/01/2024 at 16:02, KoketsoIG said:

Dear @magico,

Thank you for your response.

Please note we have escalated your query to our IT ops team and will provide feedback as soon as they have given us an update.

Have a great weekend,

KoketsoIG

Is there an update on this?

I am seeing similar behaviour, intermittent API calls failing with error:

error.public-api.exceeded-api-key-allowance

I am nowhere near the 60 non trading requests per minute:

https://labs.ig.com/faq

Thanks

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