Now Live: Live Market Feed on DhanHQ Trading APIs

Hi @Hardik,

There seems to be a bug while subscribing to additional symbols in marketfeed call

Error: TypeError: DhanFeed.create_subscription_packet() got an unexpected keyword argument ‘subscribe’

And this is because the subscribe_symbols() function internally calls create_subscription_packet() with an additional parameter subscribe=True @ line 333, which is not a input parameter in create_subscription_packet().

Am sure you will see this issue with function unsubscribe_symbols() - it has additional parameter subscribe=False

And the function create_subscription_packet() never uses the subscribe - guess that means you cannot unsubscribe.

Regards,
pradeep

1 Like