Skip to main content
Asks the market’s AMM what a trade would return. You get the tokens a buy would receive, or the USDC a sell would release, the prices after the trade, and the protocol fee. Buy quotes also include an estimated payout. A quote is read-only and places nothing.

Endpoint

Path parameters

string
required
Market UUID.

Query parameters

integer
required
The outcome to trade, from 0 to outcomeCount - 1.
string
required
buy or sell.
string
required
A positive whole number in atomic units. For buy it is USDC to spend, with 6 decimals (1000000 is 1 USDC). For sell it is outcome tokens to sell, as WAD with 18 decimals (1000000000000000000 is 1 token).

Response

object
object
{ id, contractAddress, chainId, outcomes, status }. The outcomes here carry the AMM’s raw marginal probability, next to impliedChance.
object
Always { "usdc": "atomic-6", "token": "wad-18" }.

Errors

Caching and rate limit

Market reads group, rate-limited per IP (see Rate limits). Responses may be served from a short-lived cache.

Example request

Example response

200 (buy)
400