Quote an order (fee-inclusive)
quote_orderPreview an order against the live book without placing it: average and worst price, shares, cost, payout if the outcome wins, Polymarket fee, predictDEX fee and warnings. Market BUY amount is USD to spend all-in; market SELL and limit amounts are shares.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | BUY or SELL | |
| type | No | market (default) or limit | |
| price | No | Limit price as probability 0-1 (required for limit) | |
| amount | Yes | USD for a market BUY, shares otherwise | |
| tokenId | Yes | Outcome token id | |
| postOnly | No | Limit orders: rest only, never take | |
| slippage | No | Market orders: max price move in price units, e.g. 0.02 | |
| orderType | No | FAK/FOK for market, GTC/GTD for limit | |
| expiration | No | GTD expiry, unix seconds |