mcpField
S
stock-trade-journal

stock-trade-journal

github.com/kirkluokunOther66772 installsUpdated 32w ago
Repository

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

  1. 01Record buys, sells, adds, and reductions
  2. 02Write records to Markdown and SQLite
  3. 03Append Markdown entries by stock
  4. 04Store trade details and rationale

Use cases

  1. 01Maintain a per-stock history of trade actions
  2. 02Keep structured data for later statistics
  3. 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-journal

After installing, type/stock-trade-journalin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
scripts/
query_trades.py
record_trade.py
templates/
trade-entry.md

Details

From the project README

stock-trade-journal

固定存储位置

  • results/trade-journal/records/<TS_CODE>.md
  • results/trade-journal/db/trades.db

执行规则

  1. 每次交易动作都记录(买/卖/加/减)。
  2. 同时写 Markdown + SQLite(双写)。
  3. 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