2026-04-27 — Trades: unified schema, direction & side always present
/v2/onchain/trades, /v2/onchain/wallets/{w}/trades, and /v2/onchain/markets/{tok}/trades now return the same direction and side fields on every row, regardless of which filter combination is passed. Previously these fields appeared only when a ?wallet= anchor was supplied — market-wide queries (?condition_id=…, ?token_id=…, no filter) omitted both, and consumers had to render two different schemas.
- With
?wallet=—directionandsideare wallet-relative.directionisBUYwhen the wallet contributed USDC and received outcome shares,SELLwhen it contributed outcome shares and received USDC.sideismakerwhen the wallet placed the resting order,takerwhen it crossed the spread. - Without
?wallet=—directionis anchored on the maker of each fill (the user who signed the limit order; on Polymarket’s CLOB this is always a user EOA).sideis therefore always"maker"in this case.
direction values — both are correct, just anchored on different parties. See the “Direction & side semantics” section on the trades reference page.
Strictly additive — calls that previously returned direction/side continue to return the exact same values.

