Skip to main content

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


Download files

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

Source Distribution

msci_data-1.0.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

msci_data-1.0.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

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

Hashes for msci_data-1.0.0.tar.gz
Algorithm Hash digest
SHA256 83d3d30a8b9befbc20cf88160367a6c94af5b2c1369b174a149dcd0eeb526253
MD5 e519dca1936cf818dce9aee28fc50ce1
BLAKE2b-256 bae06b271b902fe5c1b18dee06cc86a36e6e7236724096bcdf962828ae8ce701

See more details on using hashes here.

Provenance

The following attestation bundles were made for msci_data-1.0.0.tar.gz:

Publisher: publish-msci.yml on NikhilSuthar/indian-market-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for msci_data-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 625fa65b9cdf71c0a8de9408d66f333f5a3d059a6a354acb9b020a745403ed14
MD5 48e843fffa6b5589ef7317d4820f2e7d
BLAKE2b-256 68aaf891dd7a7d329a4eca580abb572bca2afa5e05a3a0b73dd49ee470f1d9d5

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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