expand.network
  • Overview
  • Getting Started
  • 🔑How do I get my API Key?
  • 📑List of All Endpoints
  • ⚙️SDK
    • Overview
    • Getting Started
  • ⛓️INTEGRATIONS
    • ⚡Blockchains
      • EVM based blockchains
        • Ethereum
        • Binance Smart Chain
        • Avalanche - C
        • Avalanche - P
        • Avalanche - X
        • Polygon
        • Cronos
        • Arbitrum
        • Fantom
        • Optimism
        • Base
        • zkSync Era
        • Mantle
      • Non-EVM based chains
        • Tron
        • Solana
        • Near
        • Algorand
        • Aptos
        • Sui
        • Starknet
        • TON
        • Cosmos Hub
        • Osmosis
        • Stacks
        • Bitcoin
        • Stellar
          • Stellar RWA
        • XRP Ledger
          • XRP Ledger RWA
    • ⚡Bridges
      • Stargate
      • Stargate V2
      • Squid Router
      • Squid Router V2
      • Allbridge Classic
      • Allbridge Core
    • ⚡DEX & DEX Aggregators
      • Uniswap V2
      • Uniswap V3
      • Uniswap X
      • Sushiswap V2
      • PancakeSwap V2
      • PancakeSwap V3
      • Aerodrome
      • Camelot V3
      • Curve V2
      • Balancer V2
      • STON.fi
      • Trader Joe
      • Orca
      • Raydium
      • SDEX
      • Cetus
      • REF Finance
      • Liquidswap
      • Sologenic
      • Alex
      • 0x (Aggregator)
      • 1inch (Aggregator)
      • Kyberswap (Aggregator)
        • Kyberswap ( Limit Order Endpoints )
      • Jupiter (Aggregator)
    • ⚡Derivatives
      • dYdX V4
    • ⚡Fungible Tokens
      • ERC20
      • WETH
    • ⚡Lending Protocols
      • Aave V2
      • Aave V3
      • Compound V2
      • Compound V3
      • Morpho
    • ⚡Yield Aggregators
      • Yearn Finance V2
      • Harvest Finance
      • Pendle
    • ⚡Liquid Staking
      • Chorus One
      • Lido V2
      • Stader
      • Benqi
      • Jito
      • EigenLayer
    • ⚡Non Fungible Tokens
      • ERC721
      • ERC1155
      • Metaplex
    • ⚡Oracles
      • ChainLink
      • WinkLink
      • Pyth Network
      • RedStone
    • ⚡Stablecoins
      • EVM
    • ⚡Synthetics
      • Synthetix
    • ⚡Supported Wallets
      • MPC Wallets
        • DFNS
        • FORDEFI
        • FIREBLOCKS
        • CIRCLE
      • HD Wallets
        • PHANTOM
        • COINBASE
        • TON Wallet
      • Wallet Connect v2
  • How To
    • Execute a Local Swap
    • Execute a Cross Chain Swap
    • Use Limit Orders
    • Lend and Borrow
    • Provision Liquidity
      • Adding Liquidity
      • Removing liquidity
    • Yield Farm
    • Use Our Transaction Decoder
    • Submit an RFQ
    • Subscribe to Events
    • Stream Data (WebSocket)
      • Stream Transaction
      • Stream Trade
      • Stream Gas
      • Stream Ticker Price
    • Source Pricing
    • Track Memecoins
    • Manage Token Approvals
  • Use Cases
    • Trade Reconciliation
    • Portfolio Management
    • Trading Features
    • On-Chain Data: DEX Liquidity Pool Forensics
    • Transaction and Pool Analysis
  • Account Abstraction
    • Overview
      • User Endpoints
      • Paymaster Endpoint
      • Bundler Endpoint
    • ⚙️SDK - Overview
  • Additional Info
    • Error Messages
    • Client-Side Security Essentials
    • Compute Unit Costs
    • API Metadata
    • Audit Certificate
    • Brand Assets
    • FAQs
    • Quicknode Marketplace
      • DEX
      • Lending Protocols
  • ID's
    • Chain IDs
    • Bridge IDs
      • Internal Chain IDs for Bridges
    • DEX IDs
    • Lending Protocol IDs
    • Yield Aggregator ID
    • Liquid Staking IDs
    • Oracle IDs
    • Stablecoin IDs
    • Derivatives IDs
    • Synthetics IDs
  • Mapping
    • Blockchains
    • DEXs
      • Uniswap V2
      • Uniswap V3
      • Sushiswap
      • PancakeSwap
      • Curve
      • Balancer
    • Lending Protocols
      • Aave
      • Compound
  • Protocol Spender
    • Spender list
Powered by GitBook
On this page
  • expand.network’s Liquidity Forensics Endpoints
  • Applications
  1. Use Cases

On-Chain Data: DEX Liquidity Pool Forensics

PreviousTrading FeaturesNextTransaction and Pool Analysis

Last updated 9 months ago

See our for a complete list of endpoints that can be used to perform liquidity pool forensics

Analyzing liquidity pools across a range of DeFi protocols is a difficult endeavor for researchers and other crypto market participants. Sourcing accurate data from which you can draw actionable insights presents several challenges. The sheer quantity of data alone is a challenge, since analyzing liquidity pools requires high quality historical and real-time pool transaction data. In addition, several key data points can be especially tricky - for example, calculating an individual token’s composition of a pool and sourcing an accurate count of liquidity providers in a pool. These challenges are compounded when one tries to monitor multiple pools.

At expand.network, we have created a series of endpoints to solve this challenging issue and make monitoring liquidity pool composition and on-going transactions accessible for users. Some examples of uses for this data include blockchain analytics firms looking to analyze pools and monitor movements and researchers looking to understand pool dynamics and assess risk.

expand.network’s Liquidity Forensics Endpoints

  • Address Analysis: The“” returns all user addresses, block numbers, and token position details for a specified pool address. This can be used to accurately identify the public addresses associated with liquidity contributions.

  • Pool Liquidity: The “” endpoint returns the total liquidity for a specified pool.

  • Token Liquidity: The “” endpoint allows users to source the individual token liquidity within a specified liquidity pool.

  • Holder Enumeration: The“” endpoint returns the total number of liquidity providers in a specified liquidity pool, allowing users to easily source a key metric for assessing the health of a liquidity pool.

  • Management Across Pools: For those looking to understand address dynamics across multiple pools, the “” endpoint will return the liquidity position for a specified user address across all the pools of a specified DEX.

  • User Liquidity: The “” endpoint returns the balance of a specified token pair for a specified address.

  • Aggregated DEX Quotes: The “” endpoint returns quotes for a specific pair address from various DEXs and DEX aggregators in which the pair address is present.

  • Token Pair Swap Quote: The “” endpoint returns the swap quotation for a specified token pair for a specified DEX.

Applications

  1. Automated Pool Management: In conjunction with the expand.network API's transacting capabilities, you can source data to reliably automate pool management operations.

  2. Real-time Insights: Users can monitor real-time pool dynamics to support risk management and trading decisions.

  3. Historical Analysis: Source extensive historical data to analyze liquidity trends and pool dynamics, and refine liquidity provisioning strategies.

  4. Portfolio Management: Track liquidity pool positions across multiple pools and at various periods of time to accurately value portfolios.

  5. Custom Reporting and Notifications: Users can create customized reports on pool performance and receive notifications for important events, such as significant liquidity changes.

List of Read & Write Endpoints
Sample LP Forensic Dashboard
getpoolindividualliquidity
getpoolliquidity
gettokenliquidity
getliquidityholders
getindividualposition
getuserliquidity
getprice
quoteaggregator