A new Python SDK needs more robust and descriptive

trying to fetch historical data using from_date and to_date, if on 2025-10-04 using below values getting values only from 3/10/2025 1:58:00 PM to 3/10/2025 4:12:00 PM. Just need to know the availability of historical data at soonest.

@sanskarbharti Please provide the product symbol, resolution and values of start and end that you tried with. We have checked against the mentioned start and end time for BTCUSD with 1 minute resolution and it is giving the right response. Please check the below code too.

from delta_rest_client import DeltaRestClient

client = DeltaRestClient(base_url = 'https://api.india.delta.exchange')

query_params = {
    'resolution': '1m',
    'start': 1759480080, # 3/10/2025 1:58:00 PM 
    'end':1759488120, # 3/10/2025 4:12:00 PM
    'symbol': 'MARK:BTCUSD'
}

candles_response = client.request(method = 'GET', path = '/v2/history/candles', payload = None, query=query_params)

print(candles_response.status_code) # 200

candles = candles_response.json()['result']

print(len(candles)) # 135 = 2hrs + 15mins