getSwapsByPairAddress
Retrieve all swap-related transactions (buy, sell, add/remove liquidity) for a specific token pair address, with optional block range, date filters, and pagination support.
Instructions
Get all swap related transactions (buy, sell, add liquidity & remove liquidity)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | No | The pair address token-transactions are to be retrieved for. | |
cursor | No | The cursor returned in the previous response (used for getting the next page). | |
fromBlock | No | The minimum block number from which to get the token transactions * Provide the param 'fromBlock' or 'fromDate' * If 'fromDate' and 'fromBlock' are provided, 'fromBlock' will be used. | |
fromDate | No | The start date from which to get the token transactions (format in seconds or datestring accepted by momentjs) * Provide the param 'fromBlock' or 'fromDate' * If 'fromDate' and 'fromBlock' are provided, 'fromBlock' will be used. | |
limit | No | The desired page size of the result. | |
toBlock | No | The block number to get the token transactions from | |
toDate | No | The end date from which to get the token transactions (format in seconds or datestring accepted by momentjs) * Provide the param 'toBlock' or 'toDate' * If 'toDate' and 'toBlock' are provided, 'toBlock' will be used. | |
transactionTypes | No | Array of transaction types. Allowed values are 'buy', 'sell', 'addLiquidity', 'removeLiquidity'. |