Quote Order
POST
https://api.unhedged.gg /api/v1/orders/quoteEstimates 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 requestRequest
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
- Required
marketIdstring - Market ID. Must be type ORDER_BOOK and open for trading.
- Required
outcomestring - Outcome label or engine ID. Ambiguous label/engine ID collisions return 400.
- Required
sidestring - "bid" (buy outcome) or "ask" (sell outcome).
- Required
typestring - Limit | Market | StopLoss | TakeProfit. StopLoss/TakeProfit quotes estimate Market execution against the book at quote time, not at the future trigger.
- Optional
pricestring - 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.
- Optional
triggerPricestring - Required for StopLoss/TakeProfit: exactly 2 decimals in (0,1). Validates the proposed order; the quote does not wait for the trigger.
- Optional
quantitystring | integer - Human shares: a string with 0–2 decimals (minimum 0.01), or a positive whole-contract integer. Supply exactly one of quantity or quoteQuantity.
- Optional
quoteQuantitystring - USD budget greater than zero with exactly 2 decimals. Notional-only by default. Supply exactly one of quantity or quoteQuantity.
- Optional
budgetIncludesFeesboolean - 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_hereBody 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"
}' {
"quote": {
"quantity": "0.01",
"notional": "0.0050000000",
"takerFee": "0.0001250000",
"makerFeeLock": null,
"worstExecutionPrice": "0.50",
"makerFeeRate": "0.02",
"takerFeeRate": "0.05",
"feeTier": 0
}
}