Getting this error when callng `subscribe_symbols`

Getting this error when callng subscribe_symbols
An error occurred: DhanFeed.create_subscription_packet() got an unexpected keyword argument ‘subscribe’

Hello @Jack1

Will look into this and deploy fixes in the next version soon.

@Hardik , @PravinJ , any update on this?? unable to subscribe via dhan sdk, once initial ws subscription is done

@Dhan

Hello @TraderX

Just added update here:

1 Like

Thanks @Hardik for the update. eager to check this out this weekend.

1 Like

Hello Hardik, new version marketfeed is having issue after subscription it only prints data for 1sr time and then no update what can be the possible reason

Hello @haeckerzz

Welcome to MadeForTrade community!

Can you confirm if you are running the code with forever function or not?

Yes I am using forever
ERROR:

CODE

from dhanhq import marketfeed
import pandas as pd

client_id = 'xx'
access_token = 'xxx'
symtosub=[(0, '13', 17), (0, '13', 19), (0, '25', 17), (0, '25', 19), (0, '27', 17), (0, '27', 19), (0, '21', 17), (0, '21', 19), (2, '40492', 17), (2, '40492', 19), (2, '40491', 17), (2, '40491', 19), (1, '1333', 17), (1, '1333', 19), (1, '2885', 17), (1, '2885', 19)]
print(symtosub)
try:
    data = marketfeed.DhanFeed(client_id, access_token, symtosub)
    while True:
        data.run_forever()
        response = data.get_data()
        print(response)
        print('\n\n')
except:
    print('e')

hi @ haeckerzz,
pls confim if market was opened that time for 2nd run or close…

hi hardick …Hope this code was tested and then released. Hope this issue was not there while your own testing …or pls let us know if any reason behind that

hi Hadick …Is this working as expected as I am not able to run with multiple instruments. Pls support

@haeckerzz

Can you add debugging on code and try again? Also, if possible, share the exception you are getting before closing the task.

@nawal555 This is working as expected. If you are getting any issue, please share the error from the terminal.