I am trying to get historical data for 1 year. In a single shot, I am passing only 50 days. I had also make 2 seconds sleep before calling kite.GetHistoricalData()
Are you trying to fetch this older data for the BSE contract? You need to handle this exception and retry to fetch for the same period with adding some delay.
I have tested only to get NSE data and it is working good. Is there any issue with BSE data? I also want to track the stocks which are only in BSE. Is there any way for that?
No, it's not an issue. As said above handling should solve all random timeouts, You need to handle this exception and retry to fetch for the same period with adding some delay.
I also want to track the stocks which are only in BSE. Is there any way for that?
You will have to filter out such contracts from the full instrument list. We don't have anything out of the box for this.
Platform: Console Application C# Package: Tech.Zerodha.KiteConnect (.NET Library ) Function: kite.GetHistoricalData() Instrument Token: 3901185 From Date: 2015-12-22 To Date: 2016-03-21 OI: false Contonuous: false Error Message: System.OverflowException: 'Value was either too large or too small for a UInt32.'
I think this is the issue with OI/Volume data.
I also check with the Postman API, it is working as expected. The only issue is with the .Net Library.
You need to handle this exception and retry to fetch for the same period with adding some delay.
You need to handle this exception and retry to fetch for the same period with adding some delay
. You will have to filter out such contracts from the full instrument list. We don't have anything out of the box for this.Platform: Console Application C#
Package: Tech.Zerodha.KiteConnect (.NET Library )
Function: kite.GetHistoricalData()
Instrument Token: 3901185
From Date: 2015-12-22
To Date: 2016-03-21
OI: false
Contonuous: false
Error Message: System.OverflowException: 'Value was either too large or too small for a UInt32.'
I think this is the issue with OI/Volume data.
I also check with the Postman API, it is working as expected. The only issue is with the .Net Library.
Let me know if I am wrong.
Refer to the screenshots attached here.