instruments() call failing for NFO exchange, with timeout or bad gateway (when timeout increased)

mb12
mb12 edited June 14 in Python client
call to instruments() function for exchange NFO fails with timeout. when we increase the kiteconnect timeout, it gives 502 Bad Gateway error. The function seems to work for NSE & BSE exchange values but fails for NFO. I have the latest Kiteconnect python client library, also verified by doing pip install --upgrade kiteconnect.
  • sujith
    This needs to be fetched only once a day and stored at your end. You may use that local file as the source for your usage. We just tried a couple of times, it seems fine. If you are polling this endpoint then you need to figure out a way to cache it at your end.
  • mb12
    ya, i do fetch it once a day, but the function is called about 5-6 times once for every exchange value. This was working fine earlier but seems to have broken since this weekend. For the time being i am just making a single call without the exchange parameter and then filtering tickers based on the exchanges needed.
  • Nivas
    I attempted to fetch the instrument data segment-wise and didn’t encounter any issues on my end. It might be helpful to debug your code to uncover the root cause and address it accordingly.
Sign In or Register to comment.