fetch_fills — this surface returns
the user-facing aggregated trade row with on-chain fields (tx_hash, owner)
and realized_pnl where the venue exposes them.
Parameters
When
None, returns the authenticated caller’s own trades (auth required
on both venues). When Some(addr), performs a public lookup for that
wallet — Polymarket only; Kalshi returns Err(NotSupported).Restrict to one market. Polymarket: condition ID. Kalshi: ticker.
Filter by side. Kalshi applies this client-side (the API doesn’t filter).
Unix seconds. Kalshi-only — Polymarket Data
/trades doesn’t support
time bounds.Per-page cap: 1000 (Kalshi) / 500 (Polymarket).
Opaque cursor. Polymarket uses offset pagination — the cursor is the
numeric offset as a string and OpenPX synthesizes the next cursor only
when the page filled.
Returns
null on the last page.
