Skip to main content
POST
/
2
/
pm
/
order
/
quote
Quote an order against the live book (price impact / expected fill)
curl --request POST \
  --url https://demo-api.mobula.io/api/2/pm/order/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokenId": "<string>",
  "side": "<string>",
  "size": 50000000
}
'
{
  "hostname": "<string>",
  "took": 123,
  "data": "<unknown>"
}
Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.

Body

application/json
tokenId
string
required
Minimum string length: 1
Pattern: ^[0-9]+$
side
string
required
size
number
required
Required range: 0 < x <= 100000000

Response

201 - application/json

Prediction Markets response

hostname
string
required
took
number
required
data
any | null

See the per-endpoint reference for the exact response shape.