This endpoint returns transaction data. Return the latest as well as historical transactions.
Method: GET
Endpoint: https://api.syve.ai/v1/filter-api/dex-trades
List of examples
The best way to understand how to use the Filter API is to visit the section of examples here.
Request Parameters
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.
Request Syntax
For more information on how to construct a request using the Filter API click here.
Response Fields
Field | Type | Description |
---|---|---|
block_number | integer | The block number (i.e. height) of the event log. |
timestamp | integer | UNIX timestamp in seconds. The zero value corresponds to the 1st of January 1970 at UTC, called the Unix Epoch. |
transaction_hash | string | The transaction has of the transaction that the DEX trade happened in. |
token_address | string | The unique address of the ERC20 token. |
price_token_usd_tick_1 | double | The price at which a token was traded based on the most recent swap. |
price_token_usd_robust_total_{1h|24h} | double | This provides the total price, in USD, based on both buy and sell trades executed in the last 1 or 24 hour(s). |
price_token_usd_robust_buy_{1h|24h} | double | This metric gives the total price, in USD, based solely on buy trades that have occurred in the last 1 or 24 hour(s). |
price_token_usd_robust_sell_{1h|24} | double | This shows the total price, in USD, accumulated from all sell trades in the last 1 or 24 hour(s). |
price_token_usd_robust_mid_{1h|24h} | double | The mid price is the average of the buy price and the sell price. |
protocol_name | string | The name of the DEX protocol on which the trade happened. |
pool_address | string | The address of the pool on which the trade happened. |
side | string | 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 sell . |
amount_token | double | The amount of the token that was traded. |
amount_eth | double | The value in ether that was traded. |
amount_usd | double | The value in dollars that was traded. |
Live Example
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.