
Stock Trade Journal
You're looking at a dual-write system that logs stock trades to both markdown files and SQLite. Every buy, sell, or position adjustment gets recorded with price, quantity, position size, and your reasoning, plus stop-loss and take-profit levels. The markdown files accumulate per ticker symbol, while the database handles the number crunching later. It's straightforward Python scripting with a clear command structure. The documentation is in Chinese but the implementation is transparent enough. If you're manually tracking trades and want something more structured than a spreadsheet but less heavy than a full portfolio app, this hits that middle ground. It won't integrate with your broker, but that might be exactly what you want for a clean personal journal.
- skills.sh installs
- 773
- GitHub stars
- 67
- last updated
- Aug 21, 2026
Install
$ npx -y skills add kirkluokun/awesome-a-stock-openclawskills --skill stock-trade-journal --agent claude-codeInstalls into .claude/skills of the current project.
Files
stock-trade-journal
固定存储位置
results/trade-journal/records/<TS_CODE>.mdresults/trade-journal/db/trades.db
执行规则
- 每次交易动作都记录(买/卖/加/减)。
- 同时写 Markdown + SQLite(双写)。
- Markdown 按个股持续追加,数据库用于后续统计计算。
命令模板
python3 scripts/record_trade.py \
--workspace ~/.openclaw/workspace \
--ts-code 603067.SH --side SELL --price 44.1 --quantity 2900 \
--position-before 36900 --position-after 34000 \
--reason "压力位先锁利润" --stop-loss 37.2 --take-profit "45.5分批"
Sponsors
Details
- Repository
- github.com/kirkluokun/awesome-a-stock-openclawskills
- Categories
- Finance & Trading, Databases
- First seen
- Jun 3, 2026