dex

Get Pool Trade Data

Extracts detailed trading activity from a specific liquidity pool over a defined block range. It returns transaction data—including transfers, swaps, burns, and mints—with key details such as block numbers, transaction hashes, token amounts, and event types, enabling users to analyze liquidity flows and market behavior within the pool.

💡 Compute Unit Value: 145 (Fixed)

get/defi/v1/dex/getpooltradedata

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/dex/getpooltradedata
  • Auth
    API key in header X-API-Key

Query parameters

dexId'1000' | '1300' | '1305' | '1306' | '1307' | '1308' | '1309' | '1310' | '1100' | '1200' | '1201'

The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more here.

Example:1000
endBlockstring

Last block of the range.

Example:100010
startBlockstring

Starting block of the range.

Example:100000
poolAddressstring required

Pool address whose data is to be fetched.

Example:0xfad57d2039c21811c8f2b5d5b65308aa99d31559
eventType'Swap' | 'Burn' | 'Mint'

Type of event to filter by: Transfer, Swap, Burn, or Mint (default).

Example:Swap

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "pair": "USDC/WETH",
    "transactions": [
      {
        "blockNumber": "18802579",
        "transactionHash": "0x244973c75c485606de7da7a1b6979ad60a85acc0eface61346363c838f0b1246",
        "values": {
          "0": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
          "1": "6000000",
          "2": "2695481331319850",
          "sender": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
          "amount0": "6000000",
          "amount1": "2695481331319850"
        },
        "eventType": "Mint",
        "data": {
          "data": "0x00000000000000000000000000000000000000000000000000000000005b8d8000000000000000000000000000000000000000000000000000099386a740842a",
          "topics": [
            "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
            "0x000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f"
          ]
        }
      },
      {
        "blockNumber": "18795938",
        "transactionHash": "0x015caf944af53d7e4812b5483d49564e6ab6124c9209e3e163449cfef0ccc9b4",
        "values": {
          "0": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
          "1": "3592426738",
          "2": "1598745565343756835",
          "sender": "0xd9e1cE17f2641f24aE83637ab66a2cca9C378B9F",
          "amount0": "3592426738",
          "amount1": "1598745565343756835"
        },
        "eventType": "Mint",
        "data": {
          "data": "0x00000000000000000000000000000000000000000000000000000000d62014f2000000000000000000000000000000000000000000000000162fe29f048bb223",
          "topics": [
            "0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f",
            "0x000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f"
          ]
        }
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.