Download NSE, BSE and MCX India market data as pandas DataFrames. Bhavcopy · Nifty/Sensex indices · F&O · Commodity spot prices Works on AWS Lambda, Snowflake, and any cloud environment.
pip install indian-market-data # NSE + MCX together
pip install nse-archives # NSE only
pip install bse-index-data # BSE only
pip install mcx-data # MCX only
NSE Quick Start
fromnsedataimportnse# Daily prices
df=nse.get("capital_market","equities_sme","sec_bhavdata_full","2026-05-22")df=nse.get("capital_market","indices","ind_close_all","2026-05-22")# F&O
df=nse.get("derivatives","equity","fo_bhav_udiff","2026-05-22")# Download to S3 (Lambda with IAM role)
nse.download("capital_market","equities_sme","sec_bhavdata_full","2026-05-22",s3_bucket="my-bucket",s3_prefix="raw/nse/")
frombsedataimportbse# Historical SENSEX OHLC
df=bse.get_index("SENSEX","2026-01-01","2026-05-22")# All 120+ indices for one date
df=bse.get_all_indices("2026-05-22")# Live SENSEX quote
df=bse.get_live_sensex()# Download to S3
bse.download_index("SENSEX","2026-01-01","2026-05-22",s3_bucket="my-bucket",s3_prefix="raw/bse/")