Simulate order
simulate_orderDetermine if a limit order at a specified price and quantity would fill on-chain, and view the expected average fill price. Works for both buy and sell orders without placing a real order.
Instructions
On-chain simulateOrder view: would this price/qty fill, at what average? Positive qty = buy, negative = sell. Does not place an order.
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": {
"venue": "<venue>",
"price": "<price>",
"quantity": "<quantity>"
},
"name": "simulate_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Limit price in token native units, integer string | |
| venue | Yes | ||
| quantity | Yes | Signed quantity integer string | |
| expirationAt | No | Required for futures |