pricemyfill
v0.1.0Execution math for prediction markets: fees, rewards, fill/slippage and a go/no-go verdict.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pm_market_brief Market brief: trade this market or not
The full report: exact fill and slippage for your size, total cost including fees and builder fee, the breakeven probability you need to believe, reward eligibility and payout estimate, net edge against your own probability estimate, and a verdict (operate / operate_partial / do_not_operate / insufficient_data) with the reasons enumerated. Send your book and the market config; nothing is stored.
| Parameter | Type | Description |
|---|---|---|
category * | string | Market category, sets the fee rate |
size_shares * | number | Order size in shares |
book | object | Order book: bids and asks with price and size in shares |
builder_bps | number | |
market_id | string | |
price_hint | number | |
question | string | |
queue_ahead | number | |
rewards | object | |
role | string | |
side | string | |
your_probability | number | Your own probability estimate. Without it the report returns the breakeven and no verdict. |
pm_platform_fee Polymarket platform fee
Exact taker fee for a Polymarket trade: shares x feeRate x p(1-p). Makers pay nothing on the global exchange. Also returns maker rebate, optional builder fee and the fee as a percentage of notional.
| Parameter | Type | Description |
|---|---|---|
category * | string | |
price * | number | |
shares * | number | |
builder_bps | number | |
kind | string | |
role | string | |
side | string |
pm_reward_eligibility Liquidity reward eligibility
Whether a resting order qualifies for a market's daily liquidity rewards (minimum size, maximum distance to midpoint), exactly what is missing if it does not, and an estimate of the daily payout.
| Parameter | Type | Description |
|---|---|---|
rewards_max_spread * | number | |
rewards_min_size * | number | |
shares * | number | |
spread_cents * | number | |
competing_shares | number | |
daily_pot | number |
pm_order_book_fill Order book fill and slippage
Walks the order book level by level: VWAP, slippage in basis points against mid, what fills and what does not. Book arithmetic, not a fill-probability model.
| Parameter | Type | Description |
|---|---|---|
book * | object | Order book: bids and asks with price and size in shares |
shares * | number | |
price | number | |
queue_ahead | number | |
side | string |