Skip to content
All library documents

How to Interpret and Query Decentralized Exchange Data

Article Amberdata research

Summary

The document explains how decentralized exchanges set prices through pooled token reserves or order books, and describes the growth of Uniswap and its forks. It presents on-chain trade records and OHLCV bars as ways to analyze DEX activity alongside centralized exchange data. A reserve example illustrates how a constant product pool can imply a price; sample records show the fields available for trades and candles.

A central practical point is to identify pairs and exchanges by contract addresses. Token symbols can be duplicated, and the same underlying pair can exist on multiple DEXs, so a symbol-only query may combine unintended assets. The article also describes address-based pair ordering and factory contracts. Its examples are specific to Ethereum and the data product discussed; the document does not evaluate strategy performance, data quality, or the risks of trading thin or manipulated pools.

Key ideas

  • Automated market makers can derive prices from the relative reserves of two assets.
  • DEX order books and liquidity pools represent distinct ways to establish prices and provide liquidity.
  • Token symbols can be duplicated, so contract and pair addresses are safer identifiers for DEX data queries.
  • Factory contracts register pairs and help distinguish the same asset pair across different exchanges.
  • DEX trade and OHLCV data can be combined with centralized exchange records for analysis.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.