Skip to content

Instantly share code, notes, and snippets.

View yash201040's full-sized avatar

Yash Ratnaparkhi yash201040

  • Exeter
  • 17:24 (UTC +01:00)
View GitHub Profile
@yash201040
yash201040 / polygon-api.py
Last active January 15, 2024 19:23
Get Nasdaq100 stocks trade data for trailing 2 years from polygon.io
from bs4 import BeautifulSoup
from datetime import timedelta
import pandas as pd
import pandas_market_calendars as mcal
import requests
import time
# ----------------------------------------------
# Scrape NASDAQ 100 stock ticker names from wiki
# ----------------------------------------------