on-internet
← Community

Nubra NubraDataSocket: code after keep_running() never executes, and option subscriptions return nothing

Stack Overflow ·

Two problems with the realtime feed: socket = websocketdata.NubraDataSocket(client=nubra, on_market_data=on_tick, on_connect=print, on_close=print, on_error=print) socket.connect() socket.subscribe(["NIFTY"], data_type="index", exchange="NSE") socket.subscribe(["NIFTY24JUN23400CE"], data_type="option", exchange="NSE") socket.keep_running() run_strategy_loop() # never reached Index ticks arrive, but the option subscription stays silent, and my strategy loop never starts. I also want to subscribe to several hundred instruments. Is there a limit?

Comments

Sign in or sign up to comment and upvote.

No comments yet.