Download MCX India commodity market data as pandas DataFrames — spot prices (recent + archive), futures bhavcopy. Works on AWS Lambda.
Project description
mcx-data
Download MCX India commodity spot market data as pandas DataFrames. Works from AWS Lambda and any cloud environment.
Full Documentation → NikhilSuthar.github.io/indian-market-data/mcx-spot
Part of the indian-market-data monorepo — also see nse-data.
pip install mcx-data
Quick Start
from mcxdata import mcx
# Today's spot prices — all 28 commodities
df = mcx.get_spot_recent()
# Single commodity
df = mcx.get_spot_recent(commodity="GOLD")
# Historical (requires specific commodity)
df = mcx.get_spot_archive("2026-05-01", "2026-05-22", commodity="GOLD")
df = mcx.get_spot_archive("2026-05-01", "2026-05-22", commodity="SILVER")
# Download to S3
mcx.download("spot", "market", "spot_recent",
s3_bucket="my-bucket", s3_prefix="raw/mcx/")
# Available commodities (28)
mcx.list_commodities()
Datasets
| Dataset | Description | Date Param |
|---|---|---|
spot_recent |
Today's spot prices — all 28 commodities | None |
spot_archive |
Historical spot prices by commodity + date range | from_date, to_date |
Available Commodities (28)
ALUMINI, ALUMINIUM, CARDAMOM, COPPER, COTTON, COTTONOIL, CPO, CRUDEOIL, CRUDEOILM, ELECDMBL, GOLD, GOLDGUINEA, GOLDM, GOLDPETAL, GOLDTEN, KAPAS, LEAD, LEADMINI, MENTHAOIL, NATGASMINI, NATURALGAS, NICKEL, SILVER, SILVERM, SILVERMIC, STEELREBAR, ZINC, ZINCMINI
Notes
- MCX archive requires a specific commodity —
"ALL"returns empty (MCX API limitation) - Uses
curl-cffiChrome TLS impersonation to bypass MCX Akamai WAF - Lambda IPs are generally unblocked — works reliably on AWS
License
MIT — data from MCX India.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcx_data-1.0.0.tar.gz.
File metadata
- Download URL: mcx_data-1.0.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a5ac6b4e59932fdcba1587b478ace2bf0671892840ba3d3a8ebe43a3d53453d
|
|
| MD5 |
0acbf56269c5736f58f52e3e8455b366
|
|
| BLAKE2b-256 |
f991fb36cca857cb6c21ab9363da07178e7871fa37f7ea86067f7577ff06b1f7
|
Provenance
The following attestation bundles were made for mcx_data-1.0.0.tar.gz:
Publisher:
publish-mcx.yml on NikhilSuthar/indian-market-data
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcx_data-1.0.0.tar.gz -
Subject digest:
0a5ac6b4e59932fdcba1587b478ace2bf0671892840ba3d3a8ebe43a3d53453d - Sigstore transparency entry: 1624478645
- Sigstore integration time:
-
Permalink:
NikhilSuthar/indian-market-data@3793a3ae802805f1e30016cfbcf995626aeab259 -
Branch / Tag:
refs/tags/mcx-v1.0.0 - Owner: https://github.com/NikhilSuthar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcx.yml@3793a3ae802805f1e30016cfbcf995626aeab259 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcx_data-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mcx_data-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7bfdc3c98e06bb28af70abb59e675dee7da148cfa263c1207f2914dd9c8c1fc
|
|
| MD5 |
ea87c91d2f112bbdad677e919a536061
|
|
| BLAKE2b-256 |
84cc6eb96a2493724a626feb4cf6a27deaf79217809bd370af89406d24988bbf
|
Provenance
The following attestation bundles were made for mcx_data-1.0.0-py3-none-any.whl:
Publisher:
publish-mcx.yml on NikhilSuthar/indian-market-data
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcx_data-1.0.0-py3-none-any.whl -
Subject digest:
e7bfdc3c98e06bb28af70abb59e675dee7da148cfa263c1207f2914dd9c8c1fc - Sigstore transparency entry: 1624478695
- Sigstore integration time:
-
Permalink:
NikhilSuthar/indian-market-data@3793a3ae802805f1e30016cfbcf995626aeab259 -
Branch / Tag:
refs/tags/mcx-v1.0.0 - Owner: https://github.com/NikhilSuthar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-mcx.yml@3793a3ae802805f1e30016cfbcf995626aeab259 -
Trigger Event:
push
-
Statement type: