A Stock Analysis
A股实时行情与分时量能分析
Run a structured paper-trading loop with SQLite-backed event logging, position tracking, and PnL review. Use when opening/closing simulated trades, journaling thesis notes, checking portfolio status, or generating weekly performance summaries.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install brs999/paper-trader打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
SQLite-backed paper trading with immutable event logs.
Asset identity:
symbol is required for trade/snapshot commands.mint is REQUIRED for snapshot and open (--mint <address>).--mint for close/set-levels so you target the right one.WETH, WBTC/cbBTC) as the mint.Use this skill when the user wants to:
Default DB path:
~/.openclaw/paper-trading.db
Override with --db <path>.
Use the script:
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts --help
Environment notes:
node:sqlite).ExperimentalWarning for SQLite in current versions; this is expected.node --experimental-strip-types {baseDir}/scripts/paper_trading.ts init \
--account main \
--name "Main Paper Account" \
--base-currency USD \
--starting-balance 10000
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts snapshot \
--symbol BTC \
--mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \
--price 62000 \
--source dexscreener
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts open \
--account main \
--symbol BTC \
--mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \
--side LONG \
--qty 0.1 \
--price 62000 \
--fee 4 \
--stop-price 60500 \
--take-price 65000 \
--max-risk-pct 1.5 \
--note "Breakout + volume confirmation"
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts set-levels \...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Paper Trading
SQLite-backed paper trading with immutable event logs.
Asset identity:
- `symbol` is required for trade/snapshot commands.
- `mint` is REQUIRED for `snapshot` and `open` (`--mint <address>`).
- If multiple positions share the same symbol, pass `--mint` for `close`/`set-levels` so you target the right one.
- For ETH/BTC on DEXs, use wrapped token contract addresses (`WETH`, `WBTC`/`cbBTC`) as the mint.
## When to Use
Use this skill when the user wants to:
- paper trade ideas before live capital
- track entries/exits/stops/takes over time
- compute realized and unrealized PnL
- keep a thesis journal and periodic review
## Database
Default DB path:
```bash
~/.openclaw/paper-trading.db
```
Override with `--db <path>`.
## Commands
Use the script:
```bash
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts --help
```
Environment notes:
- No npm dependency is required for SQLite (uses `node:sqlite`).
- Node may print `ExperimentalWarning` for SQLite in current versions; this is expected.
### 1) Initialize account
```bash
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts init \
--account main \
--name "Main Paper Account" \
--base-currency USD \
--starting-balance 10000
```
### 2) Log market snapshot (for unrealized PnL)
```bash
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts snapshot \
--symbol BTC \
--mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \
--price 62000 \
--source dexscreener
```
### 3) Open position
```bash
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts open \
--account main \
--symbol BTC \
--mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \
--side LONG \
--qty 0.1 \
--price 62000 \
--fee 4 \
--stop-price 60500 \
--take-price 65000 \
--max-risk-pct 1.5 \
--note "Breakout + volume confirmation"
```
### 4) Update stop/take
```bash
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts set-levels \...A股实时行情与分时量能分析
A股模拟交易系统 - 数据爬取、存储、策略回测、模拟交易 / A-Share Paper Trading System - Data Fetch, Storage, Backtest, Simulation
Discover, install, update, or create the right skill when a workflow gap appears. Use when a task is repetitive, a role lacks a reliable procedure, an existing skill might save time, ClawHub search/install coul...
AI Automation Agency Blueprint