Sir jab hum historical programe banaraha hu taab

from dhanhq import dhanhq
import pandas as pd

client_id = “110*******”
access_token = “*******************”
dhan = dhanhq(client_id, access_token)

def historical_data(dhan, symbol, exchange_segment, instrument_type, from_date, to_date ):
equuity_historical_data = dhan.historical_daily_data(
symbol=symbol,
exchange_segment=exchange_segment,
instrument_type=instrument_type,
expiry_code=0,
from_date=from_date,
to_date=to_date
)

df = pd.DataFrame(equuity_historical_data['data'])
print(equuity_historical_data)


symbol='TCS',
exchange_segment='NSE_EQ',
instrument_type='EQUITY',
from_date='2024-02-23',
to_date='2024-02-23'

historical_data(dhan, symbol, exchange_segment, instrument_type,  from_date,  to_date )

import pandas as pd
PS C:\Users\tapas\Dhan_practicefolder> & C:/Users/tapas/AppData/Local/Programs/Python/Python312/python.exe c:/Users/tapas/Dhan_practicefolder/historical_data.py
c:\Users\tapas\Dhan_practicefolder\historical_data.py:2: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at FEEDBACK: PyArrow as a required dependency and PyArrow backed strings · Issue #54466 · pandas-dev/pandas · GitHub

import pandas as pd
PS C:\Users\tapas\Dhan_practicefolder>

Hello @8967545424
Welcome to Dhan Community!

Can you help us with the exact error that you are getting, so that we can help you resolve the same

Sir, you should not post ur access token to us publicly here. Change it