Get user trade history
Retrieve perp trade history for a specific user with optional filtering by one perp market address, order ID, side, and timestamp range. Returns executed trades with price, size, PnL, and fee details. Supports sorting by timestamp (default: descending) and pagination. Page size is capped at 200.
Authorizations
Bearer token from Geomi. See Authentication for setup instructions.
Query Parameters
User account address (user query alias is also accepted)
Filter by specific order ID (requires market to also be provided)
Filter by market address
Filter by side
Order side filter: buy (long) or sell (short).
For orders, maps to is_buy column. For trades/funding, maps to
action IN ('OpenLong','CloseShort') (buy) or action IN ('CloseLong','OpenShort') (sell).
buy, sell Filter by product ("perp" | "spot"); omit to include both Discriminator carried on DTOs that can mix perp and spot rows (markets, orders, trades, bulk orders, bulk order fills, and WebSocket payloads). Also accepted as a query parameter on REST endpoints that can filter to one product.
Wire format is lowercase ("perp" / "spot") and accepted
case-insensitively on the request side via [impl_case_insensitive_deserialize].
perp, spot Page size
0 <= x <= 200Page offset
0 <= x <= 10000Sort key for history endpoints
timestamp ASC, DESC 
