About stock-trade-journal
stock-trade-journal is a trade-recording skill for people who want to keep a running journal of stock transactions. It writes each buy or sell action to Markdown and SQLite, with Markdown organized by stock and the database available for later analysis.
Key features
- 01Record buys, sells, adds, and reductions
- 02Write records to Markdown and SQLite
- 03Append Markdown entries by stock
- 04Store trade details and rationale
Use cases
- 01Maintain a per-stock history of trade actions
- 02Keep structured data for later statistics
- 03Record position changes, prices, and risk levels
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ kirkluokun/ awesome-a-stock-openclawskills --skill stock-trade-journalAfter installing, type/stock-trade-journalin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
README.mdscripts/query_trades.pyrecord_trade.pytemplates/trade-entry.mdDetails
From the project READMEstock-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分批"
Comments
Markdown supported