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
}Get a fill estimate for a prediction market order, showing expected average price and size across order book levels.
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
}