Skip to main content
POST
/
2
/
pm
/
order
/
quote
Get prediction market order quote
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/order/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokenId": "<string>",
  "side": "BUY",
  "size": 123
}
'
{
  "data": {
    "avgPriceUSD": 123,
    "bestPriceUSD": 123,
    "totalCostUSD": 123,
    "filledToken": 123,
    "unfilledToken": 123,
    "side": "<string>",
    "outcomeId": "<string>",
    "amountInUSD": 123,
    "amountOutUSD": 123,
    "marketImpactPercentage": 123,
    "requestId": "<string>",
    "fee": {
      "amountUSD": "<string>",
      "platformFeesPercentage": 123,
      "wallet": "<string>",
      "deductedFrom": "<string>"
    },
    "outcome": {
      "outcomeId": "<string>",
      "label": "<string>",
      "marketId": "<string>",
      "question": "<string>"
    },
    "details": {
      "levels": [
        {
          "priceUSD": 123,
          "sizeToken": 123,
          "filledToken": 123
        }
      ]
    }
  },
  "hostname": "<string>",
  "took": 123
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Body

application/json
tokenId
string
required

Outcome token ID

side
enum<string>
required
Available options:
BUY,
SELL
size
number
required

Trade size in shares

Response

200 - application/json

Order quote

data
object
hostname
string
took
number