API error on fetching commodties historical data

@Hardik @Tradehull_Imran

I was exploring dhanapi python client , faced api error today ,
its happening only with MCX futures

basicaly was fetcjing yesterdays day data , returning bad request

but no problem with nifty

Hello @butta12

Yes, this seems like a bug. Will troubleshoot and get this fixed. For now, if you pass fromDate and toDate with a gap of 1 day, then it is returning data.