Fetch Historical Data using fyers api v3
import datetime import pandas as pd def fetch_historical_data(symbol, start_date, end_date, interval=”3″): def historical_bydate(symbol, sd, ed, interval=”3″): data = { “symbol”: symbol, “resolution”: interval, “date_format”: “1”, “range_from”: str(sd), “range_to”: str(ed), “cont_flag”: “1” } nx = fyers.history(data) cols = [‘date’, ‘open’, ‘high’,…