List of examples
The best way to understand how to use the Filter API is to visit the section of examples here.
All request parameters have the format
<operator>:<field_name>. Each field of the table can be used as
field_name. See the "Response Fields" section below for possible values.
For more information on how to construct a request using the Filter API click here.
|The block number (i.e. height) of the event log.
|UNIX timestamp in seconds.
The zero value corresponds to the 1st of January 1970 at UTC, called the Unix Epoch.
|The transaction has of the transaction that the DEX trade happened in.
|The unique address of the ERC20 token.
|The price at which a token was traded based on the most recent swap.
|This provides the total price, in USD, based on both buy and sell trades executed in the last 1 or 24 hour(s).
|This metric gives the total price, in USD, based solely on buy trades that have occurred in the last 1 or 24 hour(s).
|This shows the total price, in USD, accumulated from all sell trades in the last 1 or 24 hour(s).
|The mid price is the average of the buy price and the sell price.
|The name of the DEX protocol on which the trade happened.
|The address of the pool on which the trade happened.
|Whether the token was bought or sold.
If the token with address
token_address leaves the pool after a swap we consider that
buy otherwise it's a
|The amount of the token that was traded.
|The value in ether that was traded.
|The value in dollars that was traded.
Press Try It to make a request and see what the response looks like. Feel free to try different values for each request parameter.
Note: The below live example does not include all possible request parameters.