pricemyfill

v0.1.0
dev.workers.pricemyfill.api/pricemyfill Checked 4 days ago Published 23 days ago

Execution 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.

ParameterTypeDescription
category *stringMarket category, sets the fee rate
size_shares *numberOrder size in shares
bookobjectOrder book: bids and asks with price and size in shares
builder_bpsnumber
market_idstring
price_hintnumber
questionstring
queue_aheadnumber
rewardsobject
rolestring
sidestring
your_probabilitynumberYour 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.

ParameterTypeDescription
category *string
price *number
shares *number
builder_bpsnumber
kindstring
rolestring
sidestring

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.

ParameterTypeDescription
rewards_max_spread *number
rewards_min_size *number
shares *number
spread_cents *number
competing_sharesnumber
daily_potnumber

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.

ParameterTypeDescription
book *objectOrder book: bids and asks with price and size in shares
shares *number
pricenumber
queue_aheadnumber
sidestring