# Send Paper Trader to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "paper-trader",
    "name": "Paper Trader",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/BRS999/paper-trader",
    "canonicalUrl": "https://clawhub.ai/BRS999/paper-trader",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/paper-trader",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=paper-trader",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/paper_trading.ts",
      "tests/paper_trading.test.mjs"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "paper-trader",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T23:19:35.585Z",
      "expiresAt": "2026-05-06T23:19:35.585Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=paper-trader",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=paper-trader",
        "contentDisposition": "attachment; filename=\"paper-trader-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "paper-trader"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/paper-trader"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/paper-trader",
    "downloadUrl": "https://openagent3.xyz/downloads/paper-trader",
    "agentUrl": "https://openagent3.xyz/skills/paper-trader/agent",
    "manifestUrl": "https://openagent3.xyz/skills/paper-trader/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/paper-trader/agent.md"
  }
}
```
## Documentation

### 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:

~/.openclaw/paper-trading.db

Override with --db <path>.

### Commands

Use the script:

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

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)

node --experimental-strip-types {baseDir}/scripts/paper_trading.ts snapshot \\
  --symbol BTC \\
  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\
  --price 62000 \\
  --source dexscreener

### 3) Open position

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

node --experimental-strip-types {baseDir}/scripts/paper_trading.ts set-levels \\
  --account main \\
  --symbol BTC \\
  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\
  --side LONG \\
  --stop-price 61200 \\
  --take-price 66000 \\
  --note "Move stop to reduce downside"

### 5) Close position

node --experimental-strip-types {baseDir}/scripts/paper_trading.ts close \\
  --account main \\
  --symbol BTC \\
  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\
  --side LONG \\
  --qty 0.05 \\
  --price 63500 \\
  --fee 3 \\
  --note "Partial take profit"

### 6) Journal note

node --experimental-strip-types {baseDir}/scripts/paper_trading.ts note \\
  --account main \\
  --symbol BTC \\
  --side LONG \\
  --note "Invalidation if daily close < 61k" \\
  --tags thesis risk macro

### 7) Portfolio status

node --experimental-strip-types {baseDir}/scripts/paper_trading.ts status --account main
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts status --account main --format json --pretty

### 8) Weekly review

node --experimental-strip-types {baseDir}/scripts/paper_trading.ts review --account main
node --experimental-strip-types {baseDir}/scripts/paper_trading.ts review --account main --format json --pretty

### Workflow

Keep snapshots updated for symbols with open positions, always with --mint and --source dexscreener.
Open trades only with explicit stop and risk cap (--max-risk-pct).
Log every change as an event, do not edit old events.
Run status after each trade and review at week end.

### Notes

Events are append-only in SQLite (events table).
PnL is recomputed by replaying events.
status uses the latest snapshot per symbol + mint pair for unrealized PnL.

### Validation

Run the full paper-trading test suite:

node --test {baseDir}/tests/paper_trading.test.mjs
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: BRS999
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T23:19:35.585Z
- Expires at: 2026-05-06T23:19:35.585Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/paper-trader)
- [Send to Agent page](https://openagent3.xyz/skills/paper-trader/agent)
- [JSON manifest](https://openagent3.xyz/skills/paper-trader/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/paper-trader/agent.md)
- [Download page](https://openagent3.xyz/downloads/paper-trader)