compute_round_trip_cost
Estimate total round-trip trading cost for a supported instrument by calculating explicit spread, slippage, and commission assumptions.
Instructions
Compute explicit round-trip spread, slippage, and commission cost for a supported instrument. This is an assumption model, not broker execution data.
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": {
"symbol": "<symbol>",
"bid": "<bid>",
"ask": "<ask>",
"quantity": "<quantity>"
},
"name": "compute_round_trip_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ask | Yes | ||
| bid | Yes | ||
| symbol | Yes | ||
| quantity | Yes | ||
| commission_per_unit | No | ||
| slippage_pips_per_side | No |