Skip to main content
GET
/
v2
/
markets
/
{id}
/
quote
# Quote a buy of 100 USDC on the UP outcome
curl "https://api.pmx.trade/v2/markets/1/quote?side=UP&amount=100000000&action=buy"

# Quote a sell of 50 DOWN tokens
curl "https://api.pmx.trade/v2/markets/1/quote?side=DOWN&amount=50000000&action=sell"
{
  "success": true,
  "data": {
    "side": "YES",
    "action": "buy",
    "inputAmount": 100000000,
    "outputAmount": 147060000,
    "effectivePrice": 0.68,
    "priceImpactBps": 300,
    "tradeFee": 2000000,
    "liquidityFee": 1500000,
    "effectiveAmount": 96500000,
    "preOdds": { "yes": 0.50, "no": 0.50 },
    "postOdds": { "yes": 0.68, "no": 0.32 },
    "marketId": 1
  }
}
Get a price quote to see exactly what you’ll receive before committing to a trade.

Path parameters

id
integer
required
The market ID.

Query parameters

side
string
required
Which outcome to trade. Use the market’s ticker name (e.g. UP, DOWN) or the canonical YES/NO.
amount
integer
required
Amount in raw units (6 decimals). For buys: USDC to spend. For sells: tokens to sell.
action
string
default:"buy"
Trade direction: buy or sell.

Response

success
boolean
data
object
# Quote a buy of 100 USDC on the UP outcome
curl "https://api.pmx.trade/v2/markets/1/quote?side=UP&amount=100000000&action=buy"

# Quote a sell of 50 DOWN tokens
curl "https://api.pmx.trade/v2/markets/1/quote?side=DOWN&amount=50000000&action=sell"
{
  "success": true,
  "data": {
    "side": "YES",
    "action": "buy",
    "inputAmount": 100000000,
    "outputAmount": 147060000,
    "effectivePrice": 0.68,
    "priceImpactBps": 300,
    "tradeFee": 2000000,
    "liquidityFee": 1500000,
    "effectiveAmount": 96500000,
    "preOdds": { "yes": 0.50, "no": 0.50 },
    "postOdds": { "yes": 0.68, "no": 0.32 },
    "marketId": 1
  }
}
The side parameter accepts the market’s custom ticker names. For example, if a market uses UP/DOWN tickers, pass side=UP or side=DOWN. The response always uses the canonical YES/NO in the side field.