Skip to main content
GET
Get one order's Polymarket fee and rebate
Use this endpoint to price one order before you place it: the Polymarket fee it pays, the cost or proceeds per share with that fee, and the weighted volume the fill adds toward your rebate tier. Add wallet to read the wallet’s taker and maker tiers from Polymarket and price the rebate on this order. The market, its live book and its fee curve are the same reads as Get fair price.

Parameters

Key response fields

A value we do not hold is null, never 0. An unknown condition id is a 404.

Example

On a market charging a rate of 0.05, that $100 taker buy at 45 cents is 222.22 shares, fee_per_share 0.012375 and fee_usd 2.75. @0xinsider/sdk 0.126.11 adds getFeeQuote. The free fee calculator on 0xinsider.com reads the same figures with no key.

What it does not return

  • The fee Polymarket finally charges an order that fills in several parts: each fill is rounded on its own, so the total can differ by a fraction of a cent.
  • A tier for a wallet Polymarket does not answer for. The tier is unavailable and the after-rebate figures are null.

Authorizations

Authorization
string
header
required

Legacy default or named integration API key, or OAuth 2.1 access token, in the Authorization header as Bearer oxi_sk_live_... or Bearer oxi_at_.... Default keys retain full access; integration keys are limited to their approved read, webhooks, export and usage scopes and expire within 90 days. All credentials share the owner's account limits. Data calls require an active Pro subscription and return live data. A 401 carries WWW-Authenticate: Bearer resource_metadata="https://api.0xinsider.com/.well-known/oauth-protected-resource" (RFC 6750 section 3, RFC 9728).

Scopes

read

Read markets, traders, large trades, positions, reports, search, the event stream and every MCP tool

Headers

X-Query-Validation
enum<string>

Opt into strict query-name validation. The default is compatible: unknown names are ignored and reported in X-Query-Ignored. With strict, an unknown name returns 400 bad_request with error.reason unknown_query_parameter before the handler runs, including when its percent escape is incomplete.

Available options:
strict

Query Parameters

condition_id
string
required

The market's condition id, raw or the mkt_-prefixed market.id V1 responses emit, as markets[].condition_id on GET /api/v1/games/{event_slug}/markets. The market must be a covered game's, as on GET /api/v1/fair-price.

outcome
enum<integer>
required

The outcome index to trade, 0 or 1, as outcomes[].index on GET /api/v1/games/{event_slug}/markets.

Available options:
0,
1
side
enum<string>
default:buy

buy (the default) or sell the outcome's shares.

Available options:
buy,
sell
role
enum<string>
default:taker

taker (the default): the order fills against the book and pays the fee. maker: the order rests on the book, pays no fee, and earns the wallet's maker rebate on the taker fee its fill generates.

Available options:
taker,
maker
shares
number

The order's size in shares. Pass shares or notional_usd, exactly one.

Required range: x <= 10000000
notional_usd
number

The order's size in USD before the fee; shares is notional_usd / price. Pass shares or notional_usd, exactly one.

Required range: x <= 10000000
price
number

The fill price, 0.001 to 0.999. Omitted, the quote uses the live book: the best ask for a taker buy or a maker sell, the best bid for a taker sell or a maker buy.

Required range: 0.001 <= x <= 0.999
wallet
string

The wallet you trade from, usually your Polymarket proxy wallet, to read its taker and maker rebate tiers from Polymarket and price the rebate. 0xinsider does not store it or log it, and the response does not echo it.

Pattern: ^0x[0-9a-fA-F]{40}$

Response

The order's fee before and after the wallet's rebate, or the status that says why it has none.

object
string
required
Allowed value: "fee_quote"
data
object
required

One order's Polymarket fee before and after the wallet's rebate tier.

meta
object
required