getExecutionPrice
Determine the average execution price for a specific order size on a prediction market exchange, considering the current order book. Returns 0 if the order cannot be fully filled.
Instructions
Calculate the volume-weighted average execution price for a given order size. Returns 0 if the order cannot be fully filled.
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": {
"exchange": "<exchange>",
"orderBook": "<orderBook>",
"side": "<side>",
"amount": "<amount>"
},
"name": "getExecutionPrice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange | Yes | The prediction market exchange to target. | |
| orderBook | Yes | Order book with bids and asks arrays. Each level has price and size. | |
| side | Yes | ||
| amount | Yes | ||
| verbose | No | Return full uncompacted response. Default false returns a compact, agent-friendly summary. |