返回顶部
a

avanza-investment-tracker

Process Avanza CSV exports, calculate TWRR/Modified Dietz returns, and track portfolio performance. Use when importing stock transactions, calculating investment returns, or managing portfolio data.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
132
下载量
0
收藏
概述
安装方式
版本历史

avanza-investment-tracker

# Avanza Investment Tracker Parse transaction CSVs and compute portfolio performance metrics. ## Quick Start Run from skill root with data paths pointing to your workspace: ```bash # Import transactions (data lives outside skill) python scripts/cli.py import ../data/avanza/transactions.csv # Calculate stats with auto price update python scripts/cli.py stats --update-prices auto --database ../data/avanza/asset_data.db # Or use defaults (assumes you cd into a data directory first) cd ../data/avanza python ../../skills/avanza-investment-tracker/scripts/cli.py import transactions.csv ``` ## Data Storage Pattern **User data lives OUTSIDE the skill directory.** Recommended structure: ``` workspace-finance/ ├── skills/avanza-investment-tracker/ # Portable skill (shareable) │ ├── SKILL.md │ ├── scripts/ │ └── assets/ └── data/avanza/ # Your private data ├── transactions.csv ├── special_cases.json └── asset_data.db ``` The skill provides logic. Your data stays private and portable. ## CLI Reference | Command | Description | |---------|-------------| | `python scripts/cli.py import FILE` | Import transactions from CSV | | `python scripts/cli.py stats` | Show performance stats | | `python scripts/cli.py stats --update-prices auto` | Update prices, then show stats | | `python scripts/cli.py accounts` | Show account summaries | | `python scripts/cli.py status` | Check system status | | `python scripts/cli.py reset --confirm` | Clear database (DESTRUCTIVE) | All commands accept: - `--database PATH` (default: `data/asset_data.db`) - `--special-cases PATH` (default: `data/special_cases.json`) ## Skill Contents ``` avanza-investment-tracker/ ├── SKILL.md # This file ├── requirements.txt # pip dependencies ├── assets/ # Templates (copy to your data dir) │ └── special_cases_template.json ├── scripts/ # Python code │ ├── cli.py # Main CLI entry │ ├── data_parser.py │ ├── database_handler.py │ └── calculate_stats.py └── references/ # Detailed guides (loaded as needed) ├── workflows.md └── troubleshooting.md ``` ## Dependencies - `requests` - For fetching stock prices - Standard library: `sqlite3`, `csv`, `json`, `datetime`, `argparse` Install: `pip install -r requirements.txt` ## Special Cases Corporate actions (splits, spin-offs) may need manual rules: 1. Copy template: `cp assets/special_cases_template.json ../data/avanza/special_cases.json` 2. Edit with your rules 3. Import with `--special-cases ../data/avanza/special_cases.json` ## See Also - **Detailed workflows**: See [references/workflows.md](references/workflows.md) - **Troubleshooting**: See [references/troubleshooting.md](references/troubleshooting.md) ## Account Filtering By default, stats show all accounts. Use `settings default-accounts` to set your preferred accounts: ```bash # Set default accounts (your main portfolio) python scripts/cli.py --database ../data/avanza/asset_data.db settings default-accounts "1234567,Savings Account,9876543" # View stats for default accounts only python scripts/cli.py --database ../data/avanza/asset_data.db stats --account default # Or specify accounts directly python scripts/cli.py stats --account "1234567,Savings Account" # View all accounts python scripts/cli.py stats --account all ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 avanza-investment-tracker-1775955337 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 avanza-investment-tracker-1775955337 技能

通过命令行安装

skillhub install avanza-investment-tracker-1775955337

下载 Zip 包

⬇ 下载 avanza-investment-tracker v1.0.1

文件大小: 28.77 KB | 发布时间: 2026-4-13 09:27

v1.0.1 最新 2026-4-13 09:27
- Added _meta.json file for improved metadata management.
- Updated scripts (calculate_stats.py, cli.py, database_handler.py) with minor changes and adjustments.
- Removed version field from SKILL.md and made other editorial updates.
- No breaking changes; core functionality remains the same.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部