Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Last active December 14, 2023 11:55
Show Gist options
  • Save quantra-go-algo/08c67b3b2f244eb33329271573f1d409 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/08c67b3b2f244eb33329271573f1d409 to your computer and use it in GitHub Desktop.
# Function to get historical price data
def get_price_data(ticker, start_date, end_date):
data = yf.download(ticker, start=start_date, end=end_date)
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment