Order book fill and slippage
pm_order_book_fillWalks the order book level by level: VWAP, slippage in basis points against mid, what fills and what does not. Book arithmetic, not a fill-probability model.
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": {
"book": "<book>",
"shares": "<shares>"
},
"name": "pm_order_book_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book | Yes | Order book: bids and asks with price and size in shares | |
| side | No | ||
| price | No | ||
| shares | Yes | ||
| queue_ahead | No |