# Send Trade History 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": "trade-history",
    "name": "Trade History",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/newbienodes/trade-history",
    "canonicalUrl": "https://clawhub.ai/newbienodes/trade-history",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/trade-history",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=trade-history",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "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/trade-history"
    },
    "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/trade-history",
    "downloadUrl": "https://openagent3.xyz/downloads/trade-history",
    "agentUrl": "https://openagent3.xyz/skills/trade-history/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trade-history/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trade-history/agent.md"
  }
}
```
## Documentation

### Trade History

Read and display recorded trade events from the local trades.jsonl log file, with optional filtering by symbol and configurable limit.

### When to Use

User asks: "tampilkan trade history"
User asks: "trade apa saja yang sudah dicatat?"
User asks: "recap trade BTC terakhir"
User asks: "lihat 10 trade terakhir"
User asks: "ada berapa trade yang tersimpan?"

### How It Works

This skill runs a local Python script that:

Reads the local trades.jsonl file line by line.
Parses each line as a JSON object.
Filters by symbol if specified.
Sorts results newest first (reverse chronological).
Returns up to N records (default 20).
Returns a JSON object with count and items array.

### Workflow

Step 1 — Run the read script via bash tool:
python3 ~/.npm-global/lib/node_modules/openclaw/skills/trade-history/read.py

Step 2 — Parse the JSON output (count + items array).

Step 3 — Present the trade list to the user in a readable format:

Show each trade: symbol, side, entry, sl, tp, note, timestamp
Mention total count
Newest trades first

### Optional Arguments

Run with JSON args to filter or limit results:
python3 ~/.npm-global/lib/node_modules/openclaw/skills/trade-history/read.py '{"limit": 10, "symbol": "BTCUSDT"}'

Supported args:

limit: number of trades to return (default 20)
symbol: filter by trading pair (e.g. BTCUSDT)

### Output Format

{
"count": 3,
"items": [
{
"symbol": "BTCUSDT",
"side": "BUY",
"entry": 94500,
"sl": 94000,
"tp": 95500,
"note": "sweep+fvg signal",
"source": "btc-analyzer",
"ts": "2026-02-23T00:00:00Z"
}
]
}

### Log File Location

/home/windows_11/.openclaw/polymarket-workspace/trades.jsonl

### Error Handling

If log file does not exist yet:
{"count": 0, "items": []}

No error is thrown — returns empty result gracefully.

### Guardrails

Always run the script — never fabricate trade history.
If file is missing, return empty list gracefully without error.
Output must be JSON only from the script.
Always display newest trades first (reverse chronological order).
Never delete or modify the log file — read only.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: newbienodes
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/trade-history)
- [Send to Agent page](https://openagent3.xyz/skills/trade-history/agent)
- [JSON manifest](https://openagent3.xyz/skills/trade-history/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/trade-history/agent.md)
- [Download page](https://openagent3.xyz/downloads/trade-history)