GET /api/v1/execution-price
Walks the live orderbook to estimate the average fill price, cost, and slippage for
a hypothetical order.
If you do not know the market identifiers yet, start with /markets.
You can call this endpoint with either parsec_id or exchange + market_id.
Parameters
Canonical selector. Provide either parsec_id or both exchange + market_id.
Exchange selector used with market_id.
Exchange-native market ID used with exchange.
Outcome selector. For binary markets this is usually yes or no.
Response
Volume-weighted average execution price.
Total cost of the filled portion.
Contracts that would be filled.
Whether the full requested amount can be filled.
Price impact versus the best available price.
Number of book levels consumed by the estimate.
Price of the last consumed level.
Estimated exchange fee when available.
Estimated total cost including fees when fee data is available.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.parsecapi.com/api/v1/execution-price?parsec_id=polymarket:572473&outcome=yes&side=buy&amount=100"
{
"avg_price": 0.652,
"total_cost": 65.2,
"filled_amount": 100.0,
"fully_filled": true,
"slippage": 0.002,
"levels_consumed": 3,
"worst_price": 0.654,
"fee_estimate": null,
"net_cost": null
}