-----Logged into Dhan----- init() takes 2 positional arguments but 3 were given
‘Tradehull’ object has no attribute ‘response’
Traceback (most recent call last):
File “d:\New folder\Dhan_Tradehull.py”, line 78, in get_login
self.Dhan = dhanhq(self.ClientCode, self.token_id)
TypeError: init() takes 2 positional arguments but 3 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “d:\New folder\Dhan_Tradehull.py”, line 53, in init
self.get_login(ClientCode,token_id)
File “d:\New folder\Dhan_Tradehull.py”, line 85, in get_login
print(self.response)
AttributeError: ‘Tradehull’ object has no attribute ‘response’
facing error in tradehull
-----Logged into Dhan-----
dhanhq.init() takes 2 positional arguments but 3 were given
‘Tradehull’ object has no attribute ‘response’
Traceback (most recent call last):
File “D:\My New folder\Dhan Sandbox\Test File\Dhan codebase\Dhan_Tradehull.py”, line 82, in get_login
self.Dhan = dhanhq(self.ClientCode, self.token_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: dhanhq.init() takes 2 positional arguments but 3 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “D:\My New folder\Dhan Sandbox\Test File\Dhan codebase\Dhan_Tradehull.py”, line 48, in init
self.get_login(ClientCode,token_id)
File “D:\My New folder\Dhan Sandbox\Test File\Dhan codebase\Dhan_Tradehull.py”, line 88, in get_login
print(self.response)
^^^^^^^^^^^^^
AttributeError: ‘Tradehull’ object has no attribute ‘response’
[0] > ←[33;01md:\my new folder\dhan sandbox\test file\dhan codebase\dhan_codebase usage.py←[00m(←[36;01m16←[00m)()
→ tsl.get_intraday_data(←[33m’←[39;49;00m←[33mACC←[39;49;00m←[33m’←[39;49;00m,←[33m’←[39;49;00m←[33mNSE←[39;49;00m←[33m’←[39;49;00m,←[94m1←[39;49;00m)←[90m←[39;49;00m
I’m getting this error with dhanhq==2.1.0 & Dhan-Tradehull==3.2.0 already installed.
Files Used from Here (Session 3 codes)