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