Download MSCI index levels as pandas DataFrames — end-of-day levels for any MSCI index, any return variant (Price/Net/Gross). No API key required.
Project description
msci-data
Download MSCI index levels as pandas DataFrames. No API key required.
Pulls end-of-day index levels from MSCI's public levels API — the same one that powers charts on msci.com/indexes.
Install
pip install msci-data
Quick Start
from mscidata import msci
# MSCI World — Net Total Return, date range
df = msci.get_levels("990100", "2026-01-01", "2026-07-01")
print(df)
# INDEX_CODE VARIANT RETURN_TYPE CURRENCY DATE LEVEL
# 0 990100 NETR Net Total Return USD 2026-01-02 14821.123456
# ...
# MSCI India — Price Return
df = msci.get_levels("106220", "2026-01-01", "2026-07-01", variant="price")
# MSCI Emerging Markets — Gross Total Return
df = msci.get_levels("664185", "2026-01-01", "2026-07-01", variant="gross")
# Multiple indices — concatenated into one DataFrame
df = msci.get_levels(["990100", "664185", "106220"], "2026-01-01", "2026-07-01")
# Single date
df = msci.get_levels("990100", "2026-07-03")
# List supported return variants
msci.list_variants()
API Reference
msci.get_levels(index_codes, from_date, to_date=None, variant="NETR")
| Param | Type | Description |
|---|---|---|
index_codes |
str or list[str] |
MSCI numeric index code(s) |
from_date |
str |
Start date — "YYYY-MM-DD" or "YYYYMMDD" |
to_date |
str |
End date (defaults to from_date for single day) |
variant |
str |
Return variant — see table below |
Returns: DataFrame with columns: INDEX_CODE, VARIANT, RETURN_TYPE, CURRENCY, DATE, LEVEL
Return Variants
| Code | Aliases | Description |
|---|---|---|
STRD |
price, pr |
Price Return |
NETR |
net, ntr |
Net Total Return (default) |
GRTR |
gross, tr, gtr |
Gross Total Return |
msci.download(index_codes, from_date, to_date=None, variant="NETR", output_dir=".", s3_bucket=None, s3_prefix="msci-data/")
Download to local CSV or S3.
# Local file
path = msci.download("990100", "2026-01-01", "2026-07-01")
# → MSCI_990100_NETR_20260101_20260701.csv
# S3 (Lambda with IAM role)
uri = msci.download(["990100", "664185"], "2026-01-01", "2026-07-01",
s3_bucket="my-bucket", s3_prefix="raw/msci/")
# → s3://my-bucket/raw/msci/MSCI_990100_664185_NETR_20260101_20260701.csv
Common MSCI Index Codes
| Code | Index |
|---|---|
990100 |
MSCI World (Developed Markets) |
891800 |
MSCI ACWI (All Country World) |
664185 |
MSCI Emerging Markets |
106220 |
MSCI India |
929887 |
MSCI USA |
990300 |
MSCI EAFE (Europe, Australasia, Far East) |
Index codes are the numeric identifiers from MSCI's URL structure on msci.com/indexes.
CLI
# Date range — MSCI World net return
msci-data levels --codes 990100 --from 2026-01-01 --to 2026-07-01
# Multiple indices, price variant
msci-data levels --codes 990100 664185 --from 2026-01-01 --to 2026-07-01 --variant price
# Save to S3
msci-data levels --codes 990100 --from 2026-01-01 --to 2026-07-01 \
--s3-bucket my-bucket --s3-prefix raw/msci/
# List variants
msci-data variants
Notes
- Data goes back to 2000-01-01 (MSCI API floor date)
- Currency is fixed to USD
- Data frequency is daily (trading days only)
- No authentication required — uses MSCI's public chart data API
Links
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 msci_data-1.0.0.tar.gz.
File metadata
- Download URL: msci_data-1.0.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83d3d30a8b9befbc20cf88160367a6c94af5b2c1369b174a149dcd0eeb526253
|
|
| MD5 |
e519dca1936cf818dce9aee28fc50ce1
|
|
| BLAKE2b-256 |
bae06b271b902fe5c1b18dee06cc86a36e6e7236724096bcdf962828ae8ce701
|
Provenance
The following attestation bundles were made for msci_data-1.0.0.tar.gz:
Publisher:
publish-msci.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:
msci_data-1.0.0.tar.gz -
Subject digest:
83d3d30a8b9befbc20cf88160367a6c94af5b2c1369b174a149dcd0eeb526253 - Sigstore transparency entry: 2160905414
- Sigstore integration time:
-
Permalink:
NikhilSuthar/indian-market-data@aa8096c4475f13d3d03317103526b2eecf115f12 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NikhilSuthar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-msci.yml@aa8096c4475f13d3d03317103526b2eecf115f12 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file msci_data-1.0.0-py3-none-any.whl.
File metadata
- Download URL: msci_data-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.6 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 |
625fa65b9cdf71c0a8de9408d66f333f5a3d059a6a354acb9b020a745403ed14
|
|
| MD5 |
48e843fffa6b5589ef7317d4820f2e7d
|
|
| BLAKE2b-256 |
68aaf891dd7a7d329a4eca580abb572bca2afa5e05a3a0b73dd49ee470f1d9d5
|
Provenance
The following attestation bundles were made for msci_data-1.0.0-py3-none-any.whl:
Publisher:
publish-msci.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:
msci_data-1.0.0-py3-none-any.whl -
Subject digest:
625fa65b9cdf71c0a8de9408d66f333f5a3d059a6a354acb9b020a745403ed14 - Sigstore transparency entry: 2160905531
- Sigstore integration time:
-
Permalink:
NikhilSuthar/indian-market-data@aa8096c4475f13d3d03317103526b2eecf115f12 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NikhilSuthar
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-msci.yml@aa8096c4475f13d3d03317103526b2eecf115f12 -
Trigger Event:
workflow_dispatch
-
Statement type: