analyze_fill_cost
Calculates expected trade cost or proceeds for a given quantity by walking the order book to account for slippage, then returns fill breakdowns, VWAP, and limit price guidance.
Instructions
Calculate expected cost/proceeds for a specific quantity.
Walks the order book to account for slippage when executing a trade.
Args:
ticker: Material ticker symbol (e.g., "RAT"). Single ticker only.
exchange: Exchange code (e.g., "CI1").
Valid: AI1, CI1, CI2, IC1, NC1, NC2.
quantity: Number of units to buy or sell.
direction: "buy" or "sell".
Returns:
TOON-encoded fill analysis including fills breakdown, VWAP,
slippage, and limit price recommendations.
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": {
"ticker": "<ticker>",
"exchange": "<exchange>",
"quantity": "<quantity>",
"direction": "<direction>"
},
"name": "analyze_fill_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | ||
| exchange | Yes | ||
| quantity | Yes | ||
| direction | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |