Skip to main content
The dex.trades table contains swaps made on decentralized exchanges, consolidated into a single table. The _usd amounts for tokens bought and sold are enriched by hourly token prices. For usd_amount, we preferentially select the _usd amount from more reputable tokens, namely 2-3 stablecoins (e.g. USDT, USDC) and wrapped native and native assets (e.g. ETH, WETH). We select the usd_bought_amount first if it contains the preferred token, followed by usd_sold_amount. If neither of the assets are ithe preferred tokens, we will do a coalesce and seleect the first non-null value.

Table Columns

_str columns are numeric fields cast to varchar to retain precision. Unique Key: unique_id