CoinAPI

DexOnChain Swaps

DEX on-chain swap events available as CSV and Parquet files.
Get This Dataset

DexOnChain Swaps

DEX on-chain swap events available as CSV and Parquet files.

cryptocurrencyethereumdefiswapshistorical
Pay As You Go
Product availability:Flat Files (Snowflake, S3 Pull, S3 Push, GCS Push), REST API, Market Data API, WebSocket API (v1, v2), FIX API (where applicable)
Contact Sales

Overview

Overview

DEX on-chain swap events available as CSV and Parquet files.

CoinAPI packages this dataset for teams that need analysis-ready market data with clear schema documentation, representative samples, and commercial access across CoinAPI datasets.

Product and Channel Availability

Where applicable for this dataset, access is available through: Flat Files (Snowflake, S3 Pull, S3 Push, GCS Push), REST API, Market Data API, WebSocket API (v1, v2), FIX API.

File Format

  • Formats: CSV.gz, Parquet
  • Refresh frequency: hourly
  • Size profile: Medium to high

Coverage

UNISWAP-V3, UNISWAP-V2, SUSHISWAP-V2, CURVE-FINANCE, DODO-V2, BALANCER-V2

Data Structure

  • dexonchain_swaps: DEX on-chain swap events.

The schema and sample rows below document the available fields, data types, nullability, and example values for this dataset.

Tables

ColumnTypeNullableDescriptionExample
exchange_idstringNoProtocol or venue identifier.UNISWAP-V3
pool_idstringNoLiquidity pool smart contract identifier.0xpool123
timestampnumberNoEvent timestamp as Unix seconds.1711286104
block_numbernumberNoBlockchain block number.19400211
tx_hashstringNoTransaction hash.0xtxhash123
log_indexnumberNoLog index within the transaction receipt.12
senderstringNoSwap initiator address.0xsender
recipientstringNoRecipient address.0xrecipient
token0_idstringNoToken0 contract address or identifier.0xwbtc
token0_symbolstringNoToken0 symbol.WBTC
token1_idstringNoToken1 contract address or identifier.0xusdc
token1_symbolstringNoToken1 symbol.USDC
amount0numberNoToken0 amount.-0.125
amount1numberNoToken1 amount.8432.5
amount_usdnumberNoUSD notional estimate.8432.5
sqrt_price_x96stringNoProtocol-specific sqrt price value when available.123456789012345678901234
ticknumberYesTick index for concentrated-liquidity protocols.205120
gas_usedstringNoGas used for the transaction.210000
gas_pricestringNoGas price for the transaction.25000000000

Sample Data

dexonchain_swaps

exchange_idpool_idtimestampblock_numbertx_hashlog_indexsenderrecipienttoken0_idtoken0_symboltoken1_idtoken1_symbolamount0amount1amount_usdsqrt_price_x96tickgas_usedgas_price
UNISWAP-V30xpool1231711286104194002110xtxhash123120xsender0xrecipient0xwbtcWBTC0xusdcUSDC-0.1258432.58432.512345678901234567890123420512021000025000000000