DataFrame constructor not properly called!

for the given code getting this error

DataFrame constructor not properly called!
Traceback (most recent call last):

please help me regrading this issue.

Code:

tsl = Tradehull(client_code,token_id) # tradehull_support_library

available_balance = tsl.get_balance()
max_risk_for_the_day = (available_balance1)/100-1
print(“available_balance”, available_balance)
print(“max_risk_for_the_day”, max_risk_for_the_day)

while True:
previous_hist_data = tsl.get_historical_data(‘ACC’,‘NSE’,5)
time.sleep(60)

I'm stuck here completely. please help me to solve this ASAP

Hi @santu42s ,

Can you confirm the codebase version being used by running the below code in cmd terminal-

`pip show Dhan-Tradehull`

Name: Dhan_Tradehull
Version: 3.0.6
Summary: A Dhan Codebase from TradeHull

Hi @santu42s ,

Use the below code to get historical data-

previous_hist_data = tsl.get_historical_data(‘ACC’,‘NSE’,'5')

Timeframe parameter must be given in string format.

Thanks,:grinning_face: bro, it’s working now