SuperAPI AI Directory

stock-trade-journal

Data & analytics

View repository

Updated 10-15 10:04

About this skill

stock-trade-journal

Fixed storage location

  • 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 both Markdown + SQLite (dual write).
  3. Markdown is continuously appended per individual stock, and the database is used for subsequent statistical calculations.

Command template

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分批"