Below is my code that fetches the historic data of any instruments:
foreach(var script in scripts) { List historical = Program.kite.GetHistoricalData( InstrumentToken: script, FromDate: new DateTime(2025, 1, 24, 09, 15, 0), // 2016-01-01 12:50:00 AM ToDate: new DateTime(2025, 02, 28, 16, 00, 0), // 2016-01-01 01:10:00 PM Interval: Constants.INTERVAL_MINUTE, Continuous: false ); }
However, while fetching data, it prints the entire data on the console. This causes unnecessary delay. Please suggest how to prevent the historic data from being printed. To print the data on console, it takes over 4 seconds. How to stop echoing the data on the console.
kite = new Kite(MyAPIKey, Debug: false);