Fee ledger entries
Each trade producesFeeLedgerEntry rows — one per role (maker /
taker). Both legs are charged: every order is signed with the taker
fee rate, so maker rows carry value too. A maker row is charged the taker
rate unless the market’s generation-2 exchange charges makers their own rate
(the market’s feeMakerBps, never above its feeTakerBps; RND-2185). There are no maker rebates or negative
fees. See Fees for the PS_QUADRATIC_V1 curve.
Read unit to tell a USDC fee from an in-kind one: a SELL-side fee is
taken in USDC, while a BUY-side fee is taken in OUTCOME_TOKENS —
the share haircut — denominated in the token named by tokenId. Note
token is the market’s collateral symbol (always USDC) and is not
the fee denomination.
Denomination:
OUTCOME_TOKENS vs SHARES: On the fee ledger (/api/me/fees) and trades (/api/me/trades), in-kind fees are denominated as OUTCOME_TOKENS with tokenId indicating the ERC-1155 outcome token. On positions accounting (/api/me/positions), the summary accumulator field is named feesPaidShares, but the underlying ledger unit is strictly OUTCOME_TOKENS.Query parameters
Reverse-chronological. Paginate with the opaque
cursor
echoed back as nextCursor. limit is capped at 500 (default 100).
Response:
amount is a decimal string with 18 fractional digits; parse it with a
decimal library, not a float.
Pagination
Keyset-paginated, same scheme as Trades: each response carries an opaquenextCursor — pass it back as
?cursor=<nextCursor> for the next (older) page. nextCursor is null only on
the last page. limit caps the page (max 500, default 100). The legacy
?before=<ISO-8601> still works but cursor is preferred (unique tiebreaker —
a single match writes both the maker and taker fee rows with the same
createdAt, so a timestamp-only cursor would skip one at a page edge).
Fee tier
Fields
Reconciling against on-chain
Fee ledger rows carry no transaction hash — join ontradeId. The
matching row in GET /api/me/trades
carries status, txHash (set once the settlement transaction is
broadcast) and settledAt. Fee rows are written when the trade is
matched and removed if that trade’s on-chain settlement fails, so a
failed trade leaves neither a trade row nor a fee row behind.