While the code is running, This warning" Cannot find reference ‘FeedResponse’ in ‘market_data_feed_pb2.py’ " is shown. I have downloaded the script from this source " upstox-python/examples/websocket/market_data at master · upstox/upstox-python · GitHub"
Please check and advise how to fix this warning. Thanks SVS
It seems the issue arises because the protobuf classes need to be generated, not used directly from the script. Please use the proto file to generate the classes via protobuf as detailed in our documentation. You can find the instructions here: Upstox Python - Protobuf Classes. This should resolve the warning.
Hi, thanks for the reply. I actually generated the code and didn’t download the .py file from GitHub. Though this warning doesn’t affect the working of the socket/api. Thanks anyway.