Skip to content
UNHEDGED / DOCS

Search documentation

Browse docs or start typing to find a topic

↑ ↓ to navigate Enter to open Esc to close

Quote Order

POST https://api.unhedged.gg/api/v1/orders/quote

Estimates immediate fills and fees from the displayed book using your account's fee rates. Places no order and reserves no funds or liquidity. Does not check funds, share ownership, or self-trade restrictions; execution can change with the book. postOnly applies only to placement.

Configure request

Request

Security · Bearer token

Send your API key in the Authorization header. Required scope order:read.

Rate limit · 240 req/min shared with order reads (default)

Request body

marketId string
Required
Market ID. Must be type ORDER_BOOK and open for trading.
outcome string
Required
Outcome label or engine ID. Ambiguous label/engine ID collisions return 400.
side string
Required
"bid" (buy outcome) or "ask" (sell outcome).
type string
Required
Limit | Market | StopLoss | TakeProfit. StopLoss/TakeProfit quotes estimate Market execution against the book at quote time, not at the future trigger.
price string
Optional
Exactly 2 decimals. Required for Limit in (0,1); optional for Market in [0,1] as a maximum buy price or minimum sell price. Omit for StopLoss/TakeProfit.
triggerPrice string
Optional
Required for StopLoss/TakeProfit: exactly 2 decimals in (0,1). Validates the proposed order; the quote does not wait for the trigger.
quantity string | integer
Optional
Human shares: a string with 0–2 decimals (minimum 0.01), or a positive whole-contract integer. Supply exactly one of quantity or quoteQuantity.
quoteQuantity string
Optional
USD budget greater than zero with exactly 2 decimals. Notional-only by default. Supply exactly one of quantity or quoteQuantity.
budgetIncludesFees boolean
Optional
Defaults to false. For Market/Limit bids with quoteQuantity, include fees in the estimated budget. Place with the same quoteQuantity and budgetIncludesFees to enforce the cap using actual fees and any resting maker-fee reserve.

Response fields

quantity, worstExecutionPrice
Returned with 2 decimals; preserve this precision in calculations. worstExecutionPrice can be null when unavailable or inapplicable.
notional, takerFee, makerFeeLock
USD values with 10 decimals; takerFee is signed. Can be null when unavailable or inapplicable. Preserve this precision in calculations.
makerFeeRate, takerFeeRate, feeTier
Identify the rates used for the estimate.
Authorization
Bearer token Authorization: Bearer ak_your_key_here
Body application/json
curl -X POST https://api.unhedged.gg/api/v1/orders/quote \
  -H "Authorization: Bearer ak_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
  "marketId": "clx...",
  "outcome": "YES",
  "side": "bid",
  "type": "Market",
  "price": "0.99",
  "quantity": "0.01"
}'
Response
{
  "quote": {
    "quantity": "0.01",
    "notional": "0.0050000000",
    "takerFee": "0.0001250000",
    "makerFeeLock": null,
    "worstExecutionPrice": "0.50",
    "makerFeeRate": "0.02",
    "takerFeeRate": "0.05",
    "feeTier": 0
  }
}