var kc = new KiteConnect({ api_key: ZERODHA_API_KEY, }); kc.setAccessToken(access_token); const instrumentToken = "256265"; // e.g., '256265' for NIFTY 50 const fromDate = "2024-02-01"; // Start date in YYYY-MM-DD format const toDate = "2024-02-10"; // End date in YYYY-MM-DD format const interval = "day"; // Could be "3minute", "5minute", "day" etc.
You need an add-on subscription to fetch historical data API. You can know more about it on FAQs.
after certain number of api calls?
after a time period like after 24 hr of creating?
or any other ?