Connection error: 0 - Can't subscribe to more than 3000 instruments.

aharish
Hi,

I have subscribed to 1500 instruments but I keep getting above error intermittently. My connections is interrupted many times in a day due to this.

Plz fix it.

Harish
  • sujith
    Can you let know what is the library you are using and the version number of the Kite Connect library?
  • aharish
    I am using pykiteconnect library in Python.

    version number of the Kite Connect library is 3.
  • rakeshr
    @aharish
    Make sure, you are not blocking on_tick method by performing any calculation in the same.You need to pass the value to another thread, see the example here.
  • aharish
    Yes. I am using queue. On Tick is just adding to this queue. I am doing processing in another thread.

    And even then it shouldn't give this particular error.
  • rakeshr
    rakeshr edited February 2019
    @aharish
    Yeah, it will.Are you sure, you are not blocking on_tick thread?
    Can you have look to this thread , if still not resolved can you paste your websocket code here?
  • sujith
    @aharish,
    Do you see multiple re-connections?
Sign In or Register to comment.