Skip to content

Instantly share code, notes, and snippets.

import pandas
from ta import trend
import investpy
from columnar import columnar
#Get the historical data from investing.com
def get_stock_data(country:str, stock:str, from_date:str, to_date:str):
data = investpy.get_stock_historical_data(
country=country,
stock=stock,