Idirect-Tech / Breeze-Python-SDK

The official Python client library for the ICICI Securities trading APIs
MIT License
53 stars 28 forks source link

Historical V2 chart works only for '1second, and '1minute' intervals. other intervals report empty values #27

Closed nagaraj-agadi closed 12 months ago

nagaraj-agadi commented 1 year ago

So here is what i am using. df = breeze.get_historical_data_v2(interval='1minute', from_date='2022-01-04T00:00:00.000Z', to_date='2022-01-05T00:00:00.000Z', stock_code='NIFTY', exchange_code="NFO", product_type='options', expiry_date='2022-01-06T00:00:00.000Z', right='call', strike_price='17900') df = pd.DataFrame(df['Success'])

I get the data when the interval is set to '1second' OR '1minute', but an empty dataframe whenthe interval is set to all other options '5minute', '30minute' or '1day'

Update: however this works fine for recent expiries, and it works flawlessly for the example shown below interval: '30minute' / '1day' from_date: '2023-02-07T00:00:00.000Z' to_date:'2023-02-08T00:00:00.000Z' expiry_date: '2023-02-09T00:00:00.000Z'

Is it a real issue OR am I missing something?

ShrikantOneture commented 12 months ago

can we close this?

vrashab-oneture commented 12 months ago

Yes we can close this issue. The data for the given contract is now available for all intervals.