Skip to main content

The formula

  • P is the execution price, 0 < P < 1.
  • k is a period-specific coefficient.
  • outcomeTokens is the number of outcome tokens traded.
  • The curve peaks at P = 0.5 (max uncertainty) and decays to 0 at the extremes.
  • Both sides of every fill pay this fee. The exchange contract charges each leg of a fill at the feeRateBps the user signed into the EIP-712 Order, deducted from the asset that leg receives (collateral on SELL, outcome tokens on BUY). Every signed Order carries the market’s live feeTakerBps, so there is no zero-fee maker leg.
  • Maker rate (RND-2185). On a generation-2 market whose exchange charges makers their own rate, the resting (maker) leg of a fill is charged the market’s feeMakerBps instead, never more than feeTakerBps. Orders are still signed with feeRateBps = feeTakerBps; the exchange applies the maker rate to the resting leg at the fill. Everywhere else (generation-1 markets, and exchanges that charge no maker rate) feeMakerBps equals feeTakerBps and both legs pay the same rate.

Why quadratic (not linear)?

At the same feeRateBps, the linear min(P, 1−P) curve (Polymarket’s default) charges twice as much at the top of the book. Away from P = 0.5 the two curves converge, and both reach zero at the extremes. Fee per outcome token, in units of k (feeRateBps / 10_000): Effective feeRateBps ↔ k: feeRateBps = k × 10_000. The platform default rates (makerBps / takerBps, the same for every wallet) are available at GET /api/me/fee-tier.

Three fee surfaces — which one to use

The API exposes three fee surfaces; partners often ask which one “actually applies.” Short answer:
Only market.feeTakerBps belongs in the signed Order. Signing with the platform default from /api/platform/fee-config or /api/me/fee-tier fails on every market that overrides it: the digest doesn’t match the CTFExchange reconstruction → bad_signature. Always pull feeTakerBps from the per-market response and pass it into your signing helper unmodified.
A worked example for a market whose rate is overridden to 400 while the platform default is 600: The on-chain charge uses 400 because that is what the signed Order carries, and each /api/me/fees row records the fee amount taken on that leg. There is no per-wallet discount at fill time.

Charging direction and denomination

The asset the fee is taken in is determined by which side of the fill each party held — the same rule applies regardless of maker/taker role:
  • Seller (whichever side is sending outcome tokens for collateral): fee deducted from collateral proceeds in USDC. fee_collateral = k × P × (1−P) × outcomeTokens.
  • Buyer (whichever side is sending collateral for outcome tokens): fee deducted in outcome tokens (an in-kind share haircut). fee_tokens = k × (1−P) × outcomeTokens.
Both give the same USD value for the same fill — just denominated in the asset that side is receiving. On a single match the contract charges both legs; per-fill /api/me/fees carries one row per denomination per trade (unit ∈ {USDC, OUTCOME_TOKENS}, role ∈ {maker, taker}).

How fees appear in the API responses

Per-trade fills (GET /api/orders/{id}/fills and GET /api/me/trades)

Trade rows carry fee together with feeUnit (and feeTokenId for in-kind fees), and role:
role (RND-2185) is the wallet’s leg of the fill: maker when its order was resting, taker when it crossed. It tells which of the market’s rates applied (feeMakerBps or feeTakerBps as they stood at the fill). On GET /api/orders/{id}/fills it is keyed by the order, so a self-trade’s taker order reads taker; on GET /api/me/trades a self-trade reads maker. The synchronous trades[] of POST /api/orders/place and place-batch omit it: those fills are the placed order crossing (taker). Read feeUnit before interpreting fee. This is a BUY leg, so the fee is denominated in outcome tokens — the in-kind share haircut, not dollars (k × (1 − P) × quantity = 0.04 × 0.48 × 100 = 1.92 YES, matching the worked example below). The seller-side collateral formula k × P × (1 − P) × outcomeTokens yields a different quantity in a different asset, so the two are not interchangeable: never sum fee across legs without checking feeUnit first.

Order fees summary (GET /api/orders/{id}/fees-summary)

To read the total fees charged across the matched, settling and settled fills of a single order (failed fills are not counted), call GET /api/orders/{id}/fees-summary:
  • feeUsdc: Sum of collateral-side fees charged across all SELL-leg fills of this order.
  • feeShares: Sum of outcome-token haircuts deducted across all BUY-leg fills of this order.
  • feeShareTokenId: CTF ERC-1155 token ID of the fee shares (or null if no BUY fills exist).
  • byRole: the same two totals split by the order’s role on each fill: maker where the order rested in the book, taker where it crossed it. A LIMIT order can fill partly as taker on arrival and partly as maker once it rests, at two different rates. Each pair sums to feeUsdc / feeShares.
An order has one side, so it is charged in one unit: a BUY order (as above) in outcome tokens, a SELL order in USDC; the other total is "0".

Match response (POST /api/orders/place and place-batch)

The synchronous trades[] in the POST /api/orders/place / place-batch response carries fee only, with no feeUnit. It is the trade-level USDC figure k × P × (1 − P) × quantity, even on a BUY leg that was charged in outcome tokens, so read the per-leg fee from the endpoints above or GET /api/me/fees. For per-fill audit, use GET /api/me/fees.

On-chain equivalence

The off-chain fee matches the on-chain fee charged by CTFExchange at settlement time, modulo integer-division rounding (≤ 1 atomic USDC unit). Same feeRateBps value signs into the EIP-712 Order.

Fee cap

Contract enforces feeRateBps ≤ MAX_FEE_RATE_BIPS (1000). Peak-at-0.5 at the cap is 2.5%. Raising requires Board approval and redeploy.

Examples

Rebates

The schedule covers fees. Rebates to market makers are a separate programme, computed weekly and settled off-platform under your market-maker terms; they are not reflected in /api/me/fees. Contact partners@predictstreet.com.