Hi Team,
Websocket was working with V2.
followed the same steps for V3 as listed in upstox-python/examples/websocket/market_data at master · upstox/upstox-python · GitHub , with the new V3 proto file.
getting the below error.
import MarketDataFeed_pb2 as pb
File “/MarketDataFeed_pb2.py”, line 34, in
_globals[‘_MARKETINFO_SEGMENTSTATUSENTRY’]._loaded_options = None
Any help is appreciated.
@ayappan_chellappan This is not required in the V3 market feed. Please check in upstox-python/README.md at master · upstox/upstox-python · GitHub with the heading Detailed Explanation of Feeder Interface (V3).
thank you. will check it out!
1 Like
thanks. V3 documentation helped to resolve the issue.
2 Likes
Hi can you pls share your code to login to the v3 or help me correct the code below? I am using the below code but keep getting error:
apikey = ‘my_key’
secretkey=‘my_secret_key’
rurl = ‘my_url’
uri = f’https://api.upstox.com/v3/auth/authorize?response_type=code&client_id={apikey}&redirect_uri={rurl} ’
webbrowser.open_new_tab(uri)
Ketan
February 12, 2025, 11:39am
7
Hi @harsh_srivastava we do not have v3 url for authorize API, please use this endpoint https://api.upstox.com/v2/login/authorization/token
.
For more information please refer to Authentication | Upstox Developer API
I hope this will resolve your issue.
Thanks