Error looks in this part ,
check what you are doing in that method
Posts made by Archana
RE: Time & Confirmation - Order updation into positions
So basically, in https://github.com/upstox/upstox-python#subscribe-to-a-live-feed there are 3 steps involved.
- You define a callback function to receive all feeds and set that function as listener on feed update.
- You subscribe for feed. (This is just subscription, actual feed will come in function defined in step 1)
- You start socket.
Now with reference to code, things are explained below.
//This function is where feed will come
print("Quote Update: %s" % str(message))
//This is about setting listener
//Subscribing for feed
u.subscribe(u.get_instrument_by_symbol('NSE_EQ', 'TATASTEEL'), LiveFeedType.Full)
u.subscribe(u.get_instrument_by_symbol('BSE_EQ', 'RELIANCE'), LiveFeedType.LTP)
Feel free to ask if you have queries.