Hi @admin @Moderator_1 @Moderator_2 ,
I am facing this issue while trying to subscribe to just 5 tokens for just LTP. But note that the LTP data is not coming.
I am not sure if the issue is related to some previous connection that may be open since I have been playing around with the websocket-V2 code since morning.
If so how exactly to close/remove the previous websocket connections?
Or is it some other issue?
Thanks in advance
Cyriac
PyDev console: starting.
Python 3.8.9 (tags/v3.8.9:a743f81, Apr 6 2021, 14:02:34) [MSC v.1928 64 bit (AMD64)] on win32
on open
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39320', 'sequence_number': 42423890, 'exchange_timestamp': 1709542347000, 'last_traded_price': 44485, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39321', 'sequence_number': 42423740, 'exchange_timestamp': 1709542347000, 'last_traded_price': 20735, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39326', 'sequence_number': 42424284, 'exchange_timestamp': 1709542347000, 'last_traded_price': 24520, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39325', 'sequence_number': 42423847, 'exchange_timestamp': 1709542347000, 'last_traded_price': 38295, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39328', 'sequence_number': 42423889, 'exchange_timestamp': 1709542347000, 'last_traded_price': 32565, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39338', 'sequence_number': 42423739, 'exchange_timestamp': 1709542347000, 'last_traded_price': 28815, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39325', 'sequence_number': 42425407, 'exchange_timestamp': 1709542347000, 'last_traded_price': 38080, 'subscription_mode_val': 'LTP'}
[W 240304 14:22:26 smartWebSocketV2:319] Attempting to resubscribe/reconnect (Attempt 1)...
on open
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39320', 'sequence_number': 42451808, 'exchange_timestamp': 1709542359000, 'last_traded_price': 43785, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39321', 'sequence_number': 42452193, 'exchange_timestamp': 1709542359000, 'last_traded_price': 21060, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39326', 'sequence_number': 42450167, 'exchange_timestamp': 1709542358000, 'last_traded_price': 24865, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39325', 'sequence_number': 42451888, 'exchange_timestamp': 1709542359000, 'last_traded_price': 37645, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39328', 'sequence_number': 42451807, 'exchange_timestamp': 1709542359000, 'last_traded_price': 32045, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39338', 'sequence_number': 42452187, 'exchange_timestamp': 1709542359000, 'last_traded_price': 29185, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39326', 'sequence_number': 42452287, 'exchange_timestamp': 1709542359000, 'last_traded_price': 24860, 'subscription_mode_val': 'LTP'}
Ticks: {'subscription_mode': 1, 'exchange_type': 2, 'token': '39326', 'sequence_number': 42452693, 'exchange_timestamp': 1709542359000, 'last_traded_price': 24865, 'subscription_mode_val': 'LTP'}
[W 240304 14:22:38 smartWebSocketV2:343] Connection closed due to max retry attempts reached.
[W 240304 14:22:38 smartWebSocketV2:343] Connection closed due to max retry attempts reached.
[W 240304 14:22:38 smartWebSocketV2:343] Connection closed due to max retry attempts reached.
Connection closed
Connection closed
Connection closed