Karan Patel

Karan Patel

Hey there! I'm Karan, a civil engineer turned stock market enthusiast. My journey into the world of trading began back in 2018, and since then, I've been on a thrilling ride exploring all aspects of the market. Driven by my passion for finance, I founded TradenvestEasy, a YouTube channel where I share insights and tips about algorithmic trading. It's been an incredible journey connecting with traders from around the globe and learning from each other's experiences. I recently launched TradenvestEasy.com, a platform dedicated to algorithmic traders of all levels. My goal is to provide valuable resources and foster a supportive community where we can all grow and succeed together. Join me as we navigate the exciting world of algorithmic trading and strive for financial empowerment!

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’,…

Read MoreFetch Historical Data using fyers api v3