Skip to main content

Indian market data: NSE, BSE, MCX + custom 1-minute OHLCV

Project description

market-data-feed

Unified Indian Market Data + Custom 1‑Minute OHLCV

PyPI version Python 3.9+ License: MIT


📦 Installation

pip install market-data-feed

🚀 Quick Start
python
import nsedata
import bsedata
import mcxdata
from customdata import get_scrip

# NSE: Daily Bhavcopy
nse = nsedata.nse
df = nse.get("capital_market", "equities_sme", "sec_bhavdata_full", "2026-06-30")
print(f"NSE: {len(df)} securities")

# BSE: SENSEX Historical
bse = bsedata.bse
df = bse.get_index("SENSEX", "2026-01-01", "2026-05-22")
print(f"BSE SENSEX: {len(df)} rows")

# MCX: Gold Spot Price
mcx = mcxdata.mcx
df = mcx.get_spot_recent(commodity="GOLD")
print(f"MCX Gold: {len(df)} rows")
📊 What This Package Gives You
Module	Source	What You Get
nsedata	NSE India	91 datasets  equities, F&O, debt, indices, SLB, EGR
bsedata	BSE India	55+ indices  SENSEX, BSE500, BANKEX, sectoral/thematic
mcxdata	MCX India	28 commodities  spot prices (recent + archive)
customdata	Google Drive	1‑minute OHLCV for Nifty 50 & 500 scrips and indices
🔐 Custom Data Setup (One‑Time)
customdata uses Google Drive. One‑time OAuth setup required.

Create a Google Cloud Project and enable the Drive API.

Create an OAuth 2.0 Desktop Client ID and download the JSON.

Place it as credentials/oauth_client.json in your working directory.

Run get_scrip() once  your browser will open for authentication.

📄 License
MIT  Data sourced from NSE India, BSE India, and MCX India.

Credits: Built on the original indian-market-data monorepo by Nikhil Suthar, extended with a custom 1‑minute OHLCV pipeline and Google Drive integration.

Happy Trading! 🚀
EOF

text

---

## 📤 Bump Version and Re-upload

```bash
# Update version
sed -i 's/version = "0.1.0"/version = "0.1.1"/' pyproject.toml

# Rebuild
rm -rf dist/ build/ *.egg-info
python -m build

# Upload
TWINE_USERNAME=__token__ TWINE_PASSWORD=pypi-YOUR_TOKEN twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

market_data_feed-0.1.1.tar.gz (50.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

market_data_feed-0.1.1-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

Details for the file market_data_feed-0.1.1.tar.gz.

File metadata

  • Download URL: market_data_feed-0.1.1.tar.gz
  • Upload date:
  • Size: 50.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for market_data_feed-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fc9079f2692e512f6559739f4e909c15392fb01ef0f8c78f5b579f236e58ebeb
MD5 a1ab680c1b053b17294de73231a5f426
BLAKE2b-256 b414ea3885fe5aa76a26902772cfb99518c050a343ffc87d149a8d302816b26b

See more details on using hashes here.

File details

Details for the file market_data_feed-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for market_data_feed-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01d34baaff84d92ccc91d330d9ce05462195e2780625fb5fb19b8834af10c042
MD5 07625b5eacf31b62f41088d08896e786
BLAKE2b-256 9c78a1bc0326152b1b2b5ebf62ac5b12f6aef2f8760065ce956a2eece120f9a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page