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.
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. |