{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/paper-trader",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=paper-trader",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/paper_trading.ts",
      "tests/paper_trading.test.mjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/paper-trader",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Paper Trading",
        "body": "SQLite-backed paper trading with immutable event logs.\n\nAsset identity:\n\nsymbol is required for trade/snapshot commands.\nmint is REQUIRED for snapshot and open (--mint <address>).\nIf multiple positions share the same symbol, pass --mint for close/set-levels so you target the right one.\nFor ETH/BTC on DEXs, use wrapped token contract addresses (WETH, WBTC/cbBTC) as the mint."
      },
      {
        "title": "When to Use",
        "body": "Use this skill when the user wants to:\n\npaper trade ideas before live capital\ntrack entries/exits/stops/takes over time\ncompute realized and unrealized PnL\nkeep a thesis journal and periodic review"
      },
      {
        "title": "Database",
        "body": "Default DB path:\n\n~/.openclaw/paper-trading.db\n\nOverride with --db <path>."
      },
      {
        "title": "Commands",
        "body": "Use the script:\n\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts --help\n\nEnvironment notes:\n\nNo npm dependency is required for SQLite (uses node:sqlite).\nNode may print ExperimentalWarning for SQLite in current versions; this is expected."
      },
      {
        "title": "1) Initialize account",
        "body": "node --experimental-strip-types {baseDir}/scripts/paper_trading.ts init \\\n  --account main \\\n  --name \"Main Paper Account\" \\\n  --base-currency USD \\\n  --starting-balance 10000"
      },
      {
        "title": "2) Log market snapshot (for unrealized PnL)",
        "body": "node --experimental-strip-types {baseDir}/scripts/paper_trading.ts snapshot \\\n  --symbol BTC \\\n  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\\n  --price 62000 \\\n  --source dexscreener"
      },
      {
        "title": "3) Open position",
        "body": "node --experimental-strip-types {baseDir}/scripts/paper_trading.ts open \\\n  --account main \\\n  --symbol BTC \\\n  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\\n  --side LONG \\\n  --qty 0.1 \\\n  --price 62000 \\\n  --fee 4 \\\n  --stop-price 60500 \\\n  --take-price 65000 \\\n  --max-risk-pct 1.5 \\\n  --note \"Breakout + volume confirmation\""
      },
      {
        "title": "4) Update stop/take",
        "body": "node --experimental-strip-types {baseDir}/scripts/paper_trading.ts set-levels \\\n  --account main \\\n  --symbol BTC \\\n  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\\n  --side LONG \\\n  --stop-price 61200 \\\n  --take-price 66000 \\\n  --note \"Move stop to reduce downside\""
      },
      {
        "title": "5) Close position",
        "body": "node --experimental-strip-types {baseDir}/scripts/paper_trading.ts close \\\n  --account main \\\n  --symbol BTC \\\n  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\\n  --side LONG \\\n  --qty 0.05 \\\n  --price 63500 \\\n  --fee 3 \\\n  --note \"Partial take profit\""
      },
      {
        "title": "6) Journal note",
        "body": "node --experimental-strip-types {baseDir}/scripts/paper_trading.ts note \\\n  --account main \\\n  --symbol BTC \\\n  --side LONG \\\n  --note \"Invalidation if daily close < 61k\" \\\n  --tags thesis risk macro"
      },
      {
        "title": "7) Portfolio status",
        "body": "node --experimental-strip-types {baseDir}/scripts/paper_trading.ts status --account main\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts status --account main --format json --pretty"
      },
      {
        "title": "8) Weekly review",
        "body": "node --experimental-strip-types {baseDir}/scripts/paper_trading.ts review --account main\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts review --account main --format json --pretty"
      },
      {
        "title": "Workflow",
        "body": "Keep snapshots updated for symbols with open positions, always with --mint and --source dexscreener.\nOpen trades only with explicit stop and risk cap (--max-risk-pct).\nLog every change as an event, do not edit old events.\nRun status after each trade and review at week end."
      },
      {
        "title": "Notes",
        "body": "Events are append-only in SQLite (events table).\nPnL is recomputed by replaying events.\nstatus uses the latest snapshot per symbol + mint pair for unrealized PnL."
      },
      {
        "title": "Validation",
        "body": "Run the full paper-trading test suite:\n\nnode --test {baseDir}/tests/paper_trading.test.mjs"
      }
    ],
    "body": "Paper Trading\n\nSQLite-backed paper trading with immutable event logs.\n\nAsset identity:\n\nsymbol is required for trade/snapshot commands.\nmint is REQUIRED for snapshot and open (--mint <address>).\nIf multiple positions share the same symbol, pass --mint for close/set-levels so you target the right one.\nFor ETH/BTC on DEXs, use wrapped token contract addresses (WETH, WBTC/cbBTC) as the mint.\nWhen to Use\n\nUse this skill when the user wants to:\n\npaper trade ideas before live capital\ntrack entries/exits/stops/takes over time\ncompute realized and unrealized PnL\nkeep a thesis journal and periodic review\nDatabase\n\nDefault DB path:\n\n~/.openclaw/paper-trading.db\n\n\nOverride with --db <path>.\n\nCommands\n\nUse the script:\n\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts --help\n\n\nEnvironment notes:\n\nNo npm dependency is required for SQLite (uses node:sqlite).\nNode may print ExperimentalWarning for SQLite in current versions; this is expected.\n1) Initialize account\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts init \\\n  --account main \\\n  --name \"Main Paper Account\" \\\n  --base-currency USD \\\n  --starting-balance 10000\n\n2) Log market snapshot (for unrealized PnL)\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts snapshot \\\n  --symbol BTC \\\n  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\\n  --price 62000 \\\n  --source dexscreener\n\n3) Open position\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts open \\\n  --account main \\\n  --symbol BTC \\\n  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\\n  --side LONG \\\n  --qty 0.1 \\\n  --price 62000 \\\n  --fee 4 \\\n  --stop-price 60500 \\\n  --take-price 65000 \\\n  --max-risk-pct 1.5 \\\n  --note \"Breakout + volume confirmation\"\n\n4) Update stop/take\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts set-levels \\\n  --account main \\\n  --symbol BTC \\\n  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\\n  --side LONG \\\n  --stop-price 61200 \\\n  --take-price 66000 \\\n  --note \"Move stop to reduce downside\"\n\n5) Close position\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts close \\\n  --account main \\\n  --symbol BTC \\\n  --mint 6p6xgHyF7AeE6TZk8x9mNQd2r2hH7r4mYJ8t6x6hYfSR \\\n  --side LONG \\\n  --qty 0.05 \\\n  --price 63500 \\\n  --fee 3 \\\n  --note \"Partial take profit\"\n\n6) Journal note\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts note \\\n  --account main \\\n  --symbol BTC \\\n  --side LONG \\\n  --note \"Invalidation if daily close < 61k\" \\\n  --tags thesis risk macro\n\n7) Portfolio status\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts status --account main\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts status --account main --format json --pretty\n\n8) Weekly review\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts review --account main\nnode --experimental-strip-types {baseDir}/scripts/paper_trading.ts review --account main --format json --pretty\n\nWorkflow\nKeep snapshots updated for symbols with open positions, always with --mint and --source dexscreener.\nOpen trades only with explicit stop and risk cap (--max-risk-pct).\nLog every change as an event, do not edit old events.\nRun status after each trade and review at week end.\nNotes\nEvents are append-only in SQLite (events table).\nPnL is recomputed by replaying events.\nstatus uses the latest snapshot per symbol + mint pair for unrealized PnL.\nValidation\n\nRun the full paper-trading test suite:\n\nnode --test {baseDir}/tests/paper_trading.test.mjs"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/BRS999/paper-trader",
    "publisherUrl": "https://clawhub.ai/BRS999/paper-trader",
    "owner": "BRS999",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}