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

5 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

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

    • Hi KoketsoIG, Thank you for the clarification on that. Cheers
    • Dear @millennium_falcon, Hey there! Thank you for reaching out. Just a heads-up, you can only have one API key for each environment, either live or demo. No third API key can be created.  Thanks, KoketsoIG
    • To clarify my understanding. From my Usecase, I have three separate programs all operating interdependently from one another. A program to subscribe to tic data on a number of Epics via the LightStream API, another to grab historic on a number of Epics via the REST API, and finally another to manage positions via the REST API. I need to do this on my demo account initially to get API code stabilized. The IG website specifically says that I need separate API key for each distinct program connecting to IG over REST or LightStream. So in my understanding it looks like I need three API keys all for the demo account. Am I missing something or have I misunderstood how to use these API keys? I am aware of the API request limits and this is why I assumed you need a key per program. Currently I have one API key for the demo account and cannot seem to add more keys to the demo account? I have looked at the FAQ and cannot see an answer for my query.
×
×
  • Create New...
us