# Send Trade Memory 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-memory",
    "name": "Trade Memory",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/newbienodes/trade-memory",
    "canonicalUrl": "https://clawhub.ai/newbienodes/trade-memory",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/trade-memory",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=trade-memory",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "trade-memory",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T05:05:07.360Z",
      "expiresAt": "2026-05-11T05:05:07.360Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=trade-memory",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=trade-memory",
        "contentDisposition": "attachment; filename=\"trade-memory-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "trade-memory"
      },
      "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/trade-memory"
    },
    "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-memory",
    "downloadUrl": "https://openagent3.xyz/downloads/trade-memory",
    "agentUrl": "https://openagent3.xyz/skills/trade-memory/agent",
    "manifestUrl": "https://openagent3.xyz/skills/trade-memory/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/trade-memory/agent.md"
  }
}
```
## Documentation

### Trade Memory

Append confirmed trade signals or executed trades to a local JSONL log file for persistent memory and history tracking.

### When to Use

User says: "simpan trade ini"
User says: "catat sinyal BTC tadi"
User says: "log trade BUY BTC entry 94500"
Agent wants to record a signal after btc-analyzer returns a result
User says: "tambahkan ke trade history"

### How It Works

This skill runs a local Python script that:

Accepts a JSON object as input (symbol, side, entry, sl, tp, note, source, ts).
Validates the input is proper JSON.
Appends the trade as a single line to trades.jsonl (creates file and directory if not exists).
Returns a JSON confirmation object.

### Workflow

Step 1 — Collect trade data from user or agent:

symbol: trading pair (e.g. BTCUSDT)
side: BUY or SELL
entry: entry price (number)
sl: stop loss price (number)
tp: take profit price (number)
note: optional description or reason
source: origin of signal (e.g. btc-analyzer, manual, telegram)
ts: ISO timestamp (auto-filled if not provided)

Step 2 — Run the save script via bash tool:
python3 ~/.npm-global/lib/node_modules/openclaw/skills/trade-memory/save.py '<JSON_INPUT>'

Step 3 — Confirm to user that trade was saved successfully.

### Input Format

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

### Output Format

{"ok": true, "path": "/home/windows_11/.openclaw/polymarket-workspace/trades.jsonl", "appended": 1, "trade": {...}}

### Log File Location

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

Each line is one JSON object representing one trade event.

### Error Handling

If input is not valid JSON:
{"ok": false, "error": "Invalid JSON: <error detail>"}

### Guardrails

Always APPEND to the file, never overwrite existing trades.
Create directory and file automatically if they do not exist.
Always run the script — never simulate or fake a save confirmation.
Timestamp (ts) is auto-generated in UTC if not provided by user.
Output must be JSON only.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: newbienodes
- Version: 1.0.0
## 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-05-04T05:05:07.360Z
- Expires at: 2026-05-11T05:05:07.360Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/trade-memory)
- [Send to Agent page](https://openagent3.xyz/skills/trade-memory/agent)
- [JSON manifest](https://openagent3.xyz/skills/trade-memory/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/trade-memory/agent.md)
- [Download page](https://openagent3.xyz/downloads/trade-memory)