Shoonya-Dev / ShoonyaApi-py

144 stars 134 forks source link

Live Feed data not coming #134

Closed gousKDT closed 7 months ago

gousKDT commented 1 year ago

In my code,

I have added this piece of code, inpsite of that I don't see any live data coming. The callback function is not getting called to give me the live data.

ret = api.start_websocket(order_update_callback=event_handler_order_update, subscribe_callback=event_handler_option_update, socket_open_callback=open_callback_option_open)

print("Will Open WebSocket now", ret)                            
while (socket_opened == False):  # wait till socket open & then subscribe
    pass
# subscribe to a single token
ConToken = "NFO" + "|" + token_value
#ret = api.subscribe(ConToken, feed_type="t")
#api.subscribe(f'NFO|{token_value}', "t")
ret = api.subscribe('NFO|85999', feed_type="t")
print("SUBSCRIBED...", ConToken)
gousKDT commented 1 year ago

Below function should get called, but I don't see this is being called. So unable to understand the issue here. Appreciate if any help.

def event_handler_option_update(message): print(message)

gousKDT commented 1 year ago

So far no support.

@Shoonya-Dev Any idea?

pashriva commented 1 year ago

+1 The open_callback() is never called. Line 369, so line 373 goes into an infinite loop

image

Shoonya-Dev commented 7 months ago

We've taken the necessary steps to address the problem, and we believe it has been resolved satisfactorily. However, should you encounter any further difficulties or if the issue resurfaces, please don't hesitate to reach out to us.

Additionally, for any ongoing or future support needs, feel free to contact us via our dedicated support email at apisupport@shoonya.com. We're here to assist you promptly and ensure a seamless experience.