Stop coverage check
stop_coverage_checkCompares positions with the orders actually resting at the broker. Flags: a position over the size cap with no resting stop, or a stop covering only part of it; any good-for-day order (gone at the close); resting sells exceeding shares held with no link between the legs; resting orders in names not held. With journal text in this repo's JOURNAL.template.md format, it also checks each written price gate (stops, sell limits, dated exits) against the resting orders and lists any gate it could not read as UNCHECKED rather than passing. Positions: symbol, quantity, and market value or last price. Orders: symbol, side, quantity, order type, limit price, stop price, term (GTC/day), status; the text "none" means no open orders. Nothing pasted is stored. Example: {"positions_csv": "symbol,quantity,last_price\nKO,200,70.10\nAAPL,120,229.80", "orders_csv": "symbol,side,quantity,order_type,stop_price,term\nKO,sell,200,stop,62,GTC", "cap_pct": 25}.
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": {
"positions_csv": "<positions_csv>",
"orders_csv": "<orders_csv>"
},
"name": "stop_coverage_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cash | No | Cash in the account, for position weights (default: a cash row in the export, else 0) | |
| cap_pct | No | Position size, % of the account, above which a stop is expected (default 28) | |
| orders_csv | Yes | Open orders as CSV text, or "none" | |
| journal_text | No | Optional trading journal in this repo's template format | |
| positions_csv | Yes | Positions export as CSV text, header row included |