A clean, beginner-friendly Python library for fetching JPX ETF portfolio composition (PCF) data.
Project description
pyjpx-etf
A clean, beginner-friendly Python library for fetching JPX ETF portfolio composition (PCF) data.
Installation
pip install pyjpx-etf
Quick Start
import pyjpx_etf as etf
e = etf.ETF("1306")
print(e.info.name) # "TOPIX連動型上場投資信託"
print(e.nav) # total fund NAV in yen
print(e.fee) # trust fee (%) e.g. 0.06
print(e.holdings[:3])
# [Holding(code='7203', name='トヨタ自動車', ...),
# Holding(code='8306', name='三菱UFJフィナンシャル・グループ', ...),
# Holding(code='6758', name='ソニーグループ', ...)]
CLI
$ etf 1306
1306 — TOPIX連動型上場投資信託 (2026-02-27)
Nav: 5170億 信託報酬: 0.06%
Code Name Weight
───── ────────────────────────────────── ──────
7203 トヨタ自動車 3.7%
8306 三菱UFJフィナンシャル・グループ 3.3%
6501 日立製作所 2.4%
...
Aliases
Use shorthand aliases instead of codes:
| Alias | Code | ETF |
|---|---|---|
etf topix |
1306 | TOPIX連動型上場投資信託 |
etf 225 |
1321 | 日経225連動型上場投資信託 |
etf core30 |
1311 | TOPIX Core30連動型上場投資信託 |
etf div50 |
1489 | 日経平均高配当株50指数連動型ETF |
etf div70 |
1577 | 野村日本株高配当70連動型ETF |
etf pbr |
2080 | PBR1倍割れ解消推進ETF |
etf sox |
2243 | Global X 半導体 ETF |
etf jpsox1 |
200A | 日経半導体株 ETF |
etf jpsox2 |
2644 | Global X 半導体関連-日本株式 ETF |
Options
$ etf sox --en # English names
$ etf topix -a # all holdings (not just top 10)
$ etf 1306 -a --en # combine options
Language Setting
Names default to Japanese. Switch to English via config or CLI flag:
import pyjpx_etf as etf
# English names
etf.config.lang = "en"
e = etf.ETF("1306")
print(e.info.name) # "TOPIX ETF"
Configuration
import pyjpx_etf as etf
etf.config.timeout = 60
etf.config.request_delay = 0.5
etf.config.lang = "en" # "ja" (default) or "en"
Documentation
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 pyjpx_etf-0.2.1.tar.gz.
File metadata
- Download URL: pyjpx_etf-0.2.1.tar.gz
- Upload date:
- Size: 114.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8376634d4ed3cd5995177a6ff9bee6de48b2d00157a42fe58415c5f5443c1e79
|
|
| MD5 |
b31344f3e041f413cb4f3106c74d7486
|
|
| BLAKE2b-256 |
22371ff82705cd87585fa66a51f491d1c5cd4aa9a85f34e1511ced5761dade71
|
Provenance
The following attestation bundles were made for pyjpx_etf-0.2.1.tar.gz:
Publisher:
publish.yml on obichan117/pyjpx-etf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyjpx_etf-0.2.1.tar.gz -
Subject digest:
8376634d4ed3cd5995177a6ff9bee6de48b2d00157a42fe58415c5f5443c1e79 - Sigstore transparency entry: 1002832987
- Sigstore integration time:
-
Permalink:
obichan117/pyjpx-etf@c60c48179dbcff189974ee28b7811833a11cdb9e -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/obichan117
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c60c48179dbcff189974ee28b7811833a11cdb9e -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyjpx_etf-0.2.1-py3-none-any.whl.
File metadata
- Download URL: pyjpx_etf-0.2.1-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48ed3ba398016758ef6090bd764385f2aab3cf2c738d05fc80a9645c3596f21f
|
|
| MD5 |
0823ee00ea4e2d48a49585b771c7846b
|
|
| BLAKE2b-256 |
7de9523cf925d5d4b086d88b77e249e0099a22dcd39a18af9bfa22025548f276
|
Provenance
The following attestation bundles were made for pyjpx_etf-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on obichan117/pyjpx-etf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyjpx_etf-0.2.1-py3-none-any.whl -
Subject digest:
48ed3ba398016758ef6090bd764385f2aab3cf2c738d05fc80a9645c3596f21f - Sigstore transparency entry: 1002833008
- Sigstore integration time:
-
Permalink:
obichan117/pyjpx-etf@c60c48179dbcff189974ee28b7811833a11cdb9e -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/obichan117
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c60c48179dbcff189974ee28b7811833a11cdb9e -
Trigger Event:
release
-
Statement type: