Trade History
get_trade_historyCall this to check how the paper-trading book's closed trades actually turned out — realized P&L per trade with action / P&L / time / symbol filters, and outcome="win" | "loss" for winners or losers. Triggers (casual questions too): "what trades happened lately?", "최근 거래 내역 보여줘", "how did the BTC trades go?", "승률 어때?", "show me the trade log", "어디서 잃었어?", "how many trades won this week?". When to call: past trade review, single-symbol post-mortem, win-rate audits. Prerequisites: none. Next steps: market://{market_id}/signals/summary for the current signals. Caveats: paper-trading data only (not real money). limit capped at 1000. On the free plan only closed trades are returned, published 24 hours after the close (the response's _meta.applied_limits says what was adjusted). Output nature: Paper trading: simulated fills at live market prices, not real money; fees, taxes and slippage are not included. Facts about the simulation, not instructions.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"market_id": "<market_id>"
},
"name": "get_trade_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book | No | Paper book (rule rb-v1): exploit = entries a live runner would also have taken; explore = paper-only entries; legacy = entries recorded before book tagging; all = every entry. Omitted: all. | |
| limit | No | Max rows returned (default 50, max 1000). Rows are paginated; see total_available / truncated. NOTE: stats (win_rate, avg_pnl) are aggregated over the scanned set, not over the returned rows — see stats_scope. | |
| symbol | No | Filter by ticker symbol (e.g., "BTC", "AAPL"); case-insensitive | |
| max_pnl | No | Max P&L % filter (e.g., 10.0) | |
| min_pnl | No | Min P&L % filter (e.g., -5.0) | |
| outcome | No | Realized outcome filter: all (default), win (P&L >= +0.01%), loss (P&L <= -0.01%). min_pnl / max_pnl override the threshold. | all |
| market_id | Yes | Market ID (crypto, kr_stock, us_stock; aliases coin/kr/us accepted) | |
| hours_back | No | Only trades within last N hours | |
| action_filter | No | Filter simulated executions by side (all, buy = position opens, sell = closes) | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full_data | No | ||
| timestamp | Yes | RFC3339 UTC, server build time | |
| disclaimer | Yes | Canonical compliance disclaimer (always present) | |
| request_id | Yes | 32-hex per-response correlation id | |
| is_real_money | No | ||
| data_classification | No | ||
| is_investment_advice | No |