This endpoint retrieves all swap transactions executed by a user across all pools. It supports comprehensive filtering and sorting options to help users analyze their trading history.
Results can be sorted by:
Each swap includes pool context to help identify where trades occurred, making it easier to analyze performance across different pools.
userPublicKey - The public key of the userpoolLpPubkey - Optional filter by pool LP public keyassetInTokenPublicKey - Optional filter by input assetassetOutTokenPublicKey - Optional filter by output assetminAmountIn - Optional minimum input amount filtermaxAmountIn - Optional maximum input amount filterstartTime - Optional start time (RFC3339 format)endTime - Optional end time (RFC3339 format)sort - Sort order for resultslimit - Maximum swaps per page (1-100, default: 20)offset - Number of swaps to skip (default: 0)200 OK with paginated swap list and total count404 Not Found if user doesn’t exist500 Internal Server Error if retrieval failsThe public key of the user whose swaps to retrieve
Filter by pool LP public key.
Filter by asset in token public key.
Filter by asset out token public key.
Minimum amount in.
Maximum amount in.
Start timestamp (inclusive) in RFC3339 format.
End timestamp (inclusive) in RFC3339 format.
Sort order for results. Sort order for listing user swaps.
timestampDesc, timestampAsc, amountInDesc, amountInAsc, amountOutDesc, amountOutAsc Maximum number of swaps to return.
1 <= x <= 100Number of swaps to skip before starting to collect the result set.
x >= 0