import pmxt
# API key optional — enables faster catalog-backed lookups
exchange = pmxt.Polymarket(
pmxt_api_key="YOUR_PMXT_API_KEY",
)
order_book = pmxt.OrderBook(
bids=[pmxt.OrderLevel(price=0.52, size=100)],
asks=[pmxt.OrderLevel(price=0.54, size=100)],
)
result = exchange.get_execution_price_detailed(order_book, "buy", 10){
"success": true,
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
},
"data": {
"price": 123,
"filledAmount": 123,
"fullyFilled": true
}
}Order Book & Trades
Get Execution Price Detailed
Calculate detailed execution price information including partial fill data.
POST
/
api
/
{exchange}
/
getExecutionPriceDetailed
import pmxt
# API key optional — enables faster catalog-backed lookups
exchange = pmxt.Polymarket(
pmxt_api_key="YOUR_PMXT_API_KEY",
)
order_book = pmxt.OrderBook(
bids=[pmxt.OrderLevel(price=0.52, size=100)],
asks=[pmxt.OrderLevel(price=0.54, size=100)],
)
result = exchange.get_execution_price_detailed(order_book, "buy", 10){
"success": true,
"error": {
"message": "<string>",
"code": "HOSTED_TRADING_ERROR",
"retryable": true,
"exchange": "<string>",
"detail": {}
},
"data": {
"price": 123,
"filledAmount": 123,
"fullyFilled": true
}
}Path Parameters
The prediction market exchange to target.
Available options:
polymarket, kalshi, kalshi-demo, limitless, probable, baozi, myriad, opinion, metaculus, smarkets, polymarket_us, gemini-titan, hyperliquid, suibets, rain, hunch, router Body
application/json
Response
200 - application/json
Get Execution Price Detailed response
Example:
true
Structured error envelope returned inside BaseResponse.error and ErrorResponse.error. Hosted-mode endpoints populate code, retryable, and optionally exchange / detail; legacy local-mode endpoints may still return only message.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?

