dex

Get Pool Chart Data

Provides historical data (open, close, high, low) for a specified liquidity pool over defined block ranges. Detailed transaction info (e.g., block numbers, trade prices, and token amounts) is included, enabling in-depth analysis of liquidity and trading activity.

💡 Compute Unit Value: 130 (Fixed)

get/defi/v1/dex/getpoolchartdata

Request

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

Query parameters

dexId'1000' | '1300' | '1305' | '1306' | '1307' | '1308' | '1309' | '1100'

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

Example:1000
intervalstring

Time interval for OHCLV data. Options: 15 mins (default), 30 mins, 60 mins, or 90 mins.

Example:5
poolAddressstring required

Pool address whose transactions are to be fetched.

Example:0xfad57d2039c21811c8f2b5d5b65308aa99d31559

Response

Successful response

statusinteger
msgstring
dataobject

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "pair": "USDC/WETH",
    "chartData": {
      "18882523 to 18882800": [
        {
          "open_price": "419005433942909",
          "close_price": "419447697581705",
          "low_price": "418943818861548",
          "high_price": "422263827518504",
          "transactions": [
            {
              "blockNumber": "18882529",
              "price": "418986597113367",
              "amount": {
                "token0": "2400000000",
                "token1": "1005567833072081114"
              }
            },
            {
              "blockNumber": "18882531",
              "price": "421498241454276",
              "amount": {
                "token0": "679221347",
                "token1": "286290603318704585"
              }
            },
            {
              "blockNumber": "18882538",
              "price": "418975454284176",
              "amount": {
                "token0": "376508407",
                "token1": "157747780864636534"
              }
            },
            {
              "blockNumber": "18882543",
              "price": "418968454985399",
              "amount": {
                "token0": "513835000",
                "token1": "215280656067422305"
              }
            },
            {
              "blockNumber": "18882543",
              "price": "418963677671102",
              "amount": {
                "token0": "93100000",
                "token1": "39005518391179607"
              }
            },
            {
              "blockNumber": "18882548",
              "price": "418960589212921",
              "amount": {
                "token0": "300000000",
                "token1": "125688176763876449"
              }
            },
            {
              "blockNumber": "18882560",
              "price": "418954948262823",
              "amount": {
                "token0": "417601922",
                "token1": "174956391625965577"
              }
            },
            {
              "blockNumber": "18882561",
              "price": "418947749154645",
              "amount": {
                "token0": "498134300",
                "token1": "208692243761724622"
              }
            },
            {
              "blockNumber": "18882565",
              "price": "421805099375960",
              "amount": {
                "token0": "42147657986",
                "token1": "17778097065248708608"
              }
            }
          ]
        }
      ]
    }
  }
}

Changes

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