Shoonya-Dev / ShoonyaApi-py

144 stars 134 forks source link

Error in Shoonya API when invoked. #102

Closed asnewton closed 5 months ago

asnewton commented 1 year ago

TypeError Traceback (most recent call last)

in 1 logging.basicConfig(level=logging.DEBUG) 2 ----> 3 api = ShoonyaApiPy() ~\Desktop\Python DS\ShoonyaApi-py-master\ShoonyaApi-py-master\api_helper.py in __init__(self) 40 class ShoonyaApiPy(NorenApi): 41 def __init__(self): ---> 42 NorenApi.__init__(self, host='https://api.shoonya.com/NorenWClientTP/', websocket='wss://api.shoonya.com/NorenWSTP/') 43 global api 44 api = self TypeError: __init__() missing 1 required positional argument: 'eodhost'
prakash-rawat0888 commented 1 year ago

did you find any solution on that, I am getting similar issue, wherever as it is saying following init() got an unexpected keyword argument 'eodhost'

phpgraduate commented 1 year ago

Add eodhost to api_helper.py In my case: NorenApi.init(self, host='https://api.shoonya.com/NorenWClientTP/', websocket='wss://api.shoonya.com/NorenWSTP/', eodhost='https://shoonya.finvasia.com/chartApi/getdata/')

guten5912 commented 1 year ago

getting this error in running shoonya login

Traceback (most recent call last): File "C:\Users\HP\Desktop\python t\shoonya_login.py", line 56, in Shoonya_login() File "C:\Users\HP\Desktop\python t\shoonya_login.py", line 52, in Shoonya_login print(ret['susertoken']) TypeError: 'NoneType' object is not subscriptable

Shoonya-Dev commented 5 months ago

Greetings from Shoonya!

Please clone the below-attached link and run your code; its working fine.

https://github.com/Shoonya-Dev/ShoonyaApi-py/blob/master/api_helper.py