stock-trade-journal

Original🇨🇳 Chinese
Translated
2 scriptsChecked / no sensitive code detected

Record transaction flow in accordance with unified rules. Save records by individual stock in Markdown format, and simultaneously write to SQLite for statistics and quantitative review.

11installs

NPX Install

npx skill4agent add kirkluokun/awesome-a-stock-openclawskills stock-trade-journal

SKILL.md Content (Chinese)

View Translation Comparison →

stock-trade-journal

Fixed Storage Locations

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

Execution Rules

  1. Record every trading action (buy/sell/add/reduce).
  2. Write to both Markdown and SQLite (dual write).
  3. Append continuously to Markdown by individual stock, and use the database for subsequent statistical calculations.

Command Template

bash
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 "Lock profits at resistance level first" --stop-loss 37.2 --take-profit "Batch at 45.5"