Audit a trade log
audit_trade_logBuild daily PnL, returns, and turnover from a trade log, mark positions to market with optional prices, then audit returns and flag concentration and survivorship hints.
Instructions
Builds daily PnL, returns and turnover from a trade log (marked to market with your prices if given), then runs the full audit_returns review. Adds PnL concentration by ticker and heuristic survivorship hints (tickers traded before their symbol existed; no names ever leaving a multi-year universe). Heuristics are labeled as such.
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": {
"trades": "<trades>"
},
"name": "audit_trade_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prices | No | Optional daily closes for marking positions: wide (date + one column per ticker) or long (date,ticker,close). Strongly recommended. | |
| trades | Yes | Trade log as CSV or JSON with columns date, ticker, side (buy/sell/short/cover), qty, price, and optionally fee. | |
| n_trials | No | Total strategy variants tried before this one. | |
| benchmark | No | Optional daily benchmark returns (CSV/JSON). | |
| costs_bps | No | Cost per unit of turnover in bps for the headline result (if the log has no fee column). | |
| initial_capital | No | Starting capital. Default: the largest gross exposure in the log. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||