kabutam
Terminal-based stock and portfolio tracking tool for Japanese stocks.
Features
- Fetch and manage Japanese stock data
- Track your portfolio directly from the terminal
- Lightweight and easy to use
Prerequisites
- Python 3.9 or later
- pass (パスワード管理ツール: 認証情報の管理に利用)
- Git (ソースからのインストール時)
Installation
For Arch Linux (via AUR)
AUR ヘルパーを使用する場合 (推奨)
yay -S kabutam
# または
paru -S kabutam
PKGBUILDからビルドする場合
git clone https://aur.archlinux.org/kabutam.git
cd kabutam
makepkg -si
For Development (Virtual Environment)
git clone https://codeberg.org/tonrl/kabutam.git
cd kabutam
python -m venv .venv
source .venv/bin/activate
pip install -e .
Configuration
このツールは、EDINET等のAPIキーの管理にパスワードマネージャー (pass) を使用します。
事前に各公式サイト(J-Quants / EDINET DB)等でキーを取得し、pass コマンドで登録してください
# J-Quants API キーの登録
pass insert jpx-jquants.com/api/JPX_JQUANTS_API_KEY
# EDINET DB API キーの登録
pass insert ednetdb/api/EDNET_DB_API_KEY
Usage
# ヘルプの表示
kabutam --help
# 初期化設定
kabutam --init
# 銘柄の検索・表示
kabutam -C 19670
# ポートフォリオ表示
kabutam --portfolio
# ライセンス情報の表示
kabutam --license
Example output
$ kabutam --portfolio 7:48 ✔
===============================================================================================
ポートフォリオ
===============================================================================================
Code Company Account Shares Avg Price Price Value
-----------------------------------------------------------------------------------------------
XXXXX サンプルホールディングス 特定 1,200 190.47 233.80 280,560
XXXXX テストカンパニー 特定 100 2,401.75 3,002.00 300,200
XXXXX テストカンパニー NISA 100 2,300.00 3,002.00 300,200
XXXXX サンプル電鉄 特定 100 2,708.00 2,959.50 295,950
XXXXX サンプル通信 NISA 100 144.00 166.10 16,610
-----------------------------------------------------------------------------------------------
取得総額 : 1,292,520 円
保有資産額 : 1,392,520 円
評価損益 : +100,000 円
評価損益率 : +7.74%
===============================================================================================
年間配当金(税引前): 45,000 円
年間配当金(税引後): 35,858 円
配当利回り(取得額ベース): 3.48%
配当利回り(評価額ベース): 3.23%
===============================================================================================
License
This project is licensed under the GNU General Public License v3.0 or later - see the LICENSE file for details.
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 kabutam-0.1.4.tar.gz.
File metadata
- Download URL: kabutam-0.1.4.tar.gz
- Upload date:
- Size: 31.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bde34ba9965970d00662478fccf41bec1e1a0ce05c5c5dad6a458c90605daed9
|
|
| MD5 |
151db197d964ec5beef85505107f7503
|
|
| BLAKE2b-256 |
07610987db9a1f66098ea1d9438bed994abb0e961584ffe66c941e3606152145
|
Provenance
The following attestation bundles were made for kabutam-0.1.4.tar.gz:
Publisher:
release.yml on tonrl/kabutam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kabutam-0.1.4.tar.gz -
Subject digest:
bde34ba9965970d00662478fccf41bec1e1a0ce05c5c5dad6a458c90605daed9 - Sigstore transparency entry: 2567125672
- Sigstore integration time:
-
Permalink:
tonrl/kabutam@f6f6121b022c58836ba8a9ca8c39da82d8a1f92f -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/tonrl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f6f6121b022c58836ba8a9ca8c39da82d8a1f92f -
Trigger Event:
push
-
Statement type:
File details
Details for the file kabutam-0.1.4-py3-none-any.whl.
File metadata
- Download URL: kabutam-0.1.4-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0619c093f9fe0a785b4634e4ceb023882597751ff471a20127457df0d3b857a5
|
|
| MD5 |
cee16924a2764ab7d80ac8a27444d356
|
|
| BLAKE2b-256 |
03b0657c8e349308ffded7f81b7af10cd31f7ee463efc840dca0bb58a90c9eec
|
Provenance
The following attestation bundles were made for kabutam-0.1.4-py3-none-any.whl:
Publisher:
release.yml on tonrl/kabutam
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kabutam-0.1.4-py3-none-any.whl -
Subject digest:
0619c093f9fe0a785b4634e4ceb023882597751ff471a20127457df0d3b857a5 - Sigstore transparency entry: 2567126091
- Sigstore integration time:
-
Permalink:
tonrl/kabutam@f6f6121b022c58836ba8a9ca8c39da82d8a1f92f -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/tonrl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f6f6121b022c58836ba8a9ca8c39da82d8a1f92f -
Trigger Event:
push
-
Statement type: