WebSocket V3 not giving market data and getting disconnected after throwing error

{'status': 'success', 'data': {'authorizedRedirectUri': 'wss://wsfeeder-api.upstox.com/market-data-feeder/v3/upstox-developer-api/feeds?requestId=9b90c437-28a0-468a-a3a1-7664ccf06c9f&code=G8B4Q-87bea5d7-0028-4425-8075-0282a9adbf3f', 'authorized_redirect_uri': 'wss://wsfeeder-api.upstox.com/market-data-feeder/v3/upstox-developer-api/feeds?requestId=9b90c437-28a0-468a-a3a1-7664ccf06c9f&code=G8B4Q-87bea5d7-0028-4425-8075-0282a9adbf3f'}}
type: market_info
currentTs: 1756200634031
marketInfo {
  segmentStatus {
    key: "NSE_INDEX"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "NSE_FO"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "NSE_EQ"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "NSE_COM"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "NCD_FO"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "MCX_INDEX"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "MCX_FO"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "BSE_INDEX"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "BSE_FO"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "BSE_EQ"
    value: NORMAL_OPEN
  }
  segmentStatus {
    key: "BCD_FO"
    value: NORMAL_OPEN
  }
}

{'guid': '56sdsadasknjflkjajsfkahgnjkangasjk78', 'method': 'sub', 'data': {'mode': 'full', 'instrumentKeys': ['NSE_INDEX|Nifty 50', 'NSE_INDEX|Nifty Bank', 'NSE_INDEX|Nifty Fin Service']}}
Exception in thread Thread-70 (run):
Traceback (most recent call last):
  File "C:\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "C:\Python312\Lib\site-packages\sentry_sdk\integrations\threading.py", line 99, in run
    return _run_old_run_func()
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\sentry_sdk\integrations\threading.py", line 94, in _run_old_run_func
    reraise(*_capture_exception())
  File "C:\Python312\Lib\site-packages\sentry_sdk\utils.py", line 1640, in reraise
    raise value
  File "C:\Python312\Lib\site-packages\sentry_sdk\integrations\threading.py", line 92, in _run_old_run_func
    return old_run_func(self, *a, **kw)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "D:\Projects\Algo-Trading\src\strategies\BaseStrategy.py", line 105, in run
    self.process()
  File "D:\Projects\Algo-Trading\src\strategies\GeneralFOTradingStrategy.py", line 198, in process
    self.processInit()
  File "D:\Projects\Algo-Trading\src\strategies\GeneralFOTradingStrategy.py", line 184, in processInit
    self.registerSymbole()
  File "D:\Projects\Algo-Trading\src\strategies\GeneralFOTradingStrategy.py", line 195, in registerSymbole
    TradeManager.ticker.registerSymbols(symbolList)
  File "D:\Projects\Algo-Trading\src\ticker\UpstoxTicker.py", line 155, in registerSymbols
    asyncio.run(self.sendWsData(data))
  File "C:\Python312\Lib\asyncio\runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\asyncio\runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\asyncio\base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "D:\Projects\Algo-Trading\src\ticker\UpstoxTicker.py", line 108, in sendWsData
    await self.ticker.send(binary_data)
  File "C:\Python312\Lib\site-packages\websockets\asyncio\connection.py", line 483, in send
    async with self.send_context():
  File "C:\Python312\Lib\contextlib.py", line 210, in __aenter__
    return await anext(self.gen)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Python312\Lib\site-packages\websockets\asyncio\connection.py", line 957, in send_context
    raise self.protocol.close_exc from original_exc
websockets.exceptions.ConnectionClosedOK: sent 1000 (OK); then received 1000 (OK)
{'status': 'success', 'data': {'authorizedRedirectUri': 'wss://wsfeeder-api.upstox.com/market-data-feeder/v3/upstox-developer-api/feeds?requestId=a6de7f8b-b246-4a0a-9157-953ac153ddda&code=yI94B-e02216df-2539-4270-a007-8a4ff01b51c7', 'authorized_redirect_uri': 'wss://wsfeeder-api.upstox.com/market-data-feeder/v3/upstox-developer-api/feeds?requestId=a6de7f8b-b246-4a0a-9157-953ac153ddda&code=yI94B-e02216df-2539-4270-a007-8a4ff01b51c7'}}
Error: 'feeds'

after trying to connect its give only market info in second feed its getting error and disconnecting

my account and credentials are old using that from v1 that would cause any problem ?

Hi @santhosh_kumar
Can you check if you are sending valid instrument keys while subscribing to the websocket?
Since you are able to connect, the issue might be with the keys.

You can find the list of instruments here:
Instrument JSON Files

For easier websocket implementation, please refer to the streamer functionalities available in different SDKs:

Thanks!