Trade Memory
by @newbienodes
Save a trade or signal event to local memory log file (trades.jsonl). Use when a trade signal is confirmed and needs to be recorded, saved, or logged for fut...
clawhub install trade-memoryπ About This Skill
name: trade-memory version: 1.0.0 description: Save a trade or signal event to local memory log file (trades.jsonl). Use when a trade signal is confirmed and needs to be recorded, saved, or logged for future reference and history tracking. metadata: { "openclaw": { "emoji": "π§ ", "requires": { "bins": ["python3"] }, }, }
Trade Memory
Append confirmed trade signals or executed trades to a local JSONL log file for persistent memory and history tracking.
When to Use
How It Works
This skill runs a local Python script that: 1. Accepts a JSON object as input (symbol, side, entry, sl, tp, note, source, ts). 2. Validates the input is proper JSON. 3. Appends the trade as a single line to trades.jsonl (creates file and directory if not exists). 4. Returns a JSON confirmation object.
Workflow
Step 1 β Collect trade data from user or agent:
Step 2 β Run the save script via bash tool:
python3 ~/.npm-global/lib/node_modules/openclaw/skills/trade-memory/save.py '
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: