GET
/
liquidity
/
{poolAddress}
/
snapshots
Snapshots
curl --request GET \
  --url https://api.amberdata.com/market/defi/liquidity/{poolAddress}/snapshots \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": [
    {
      "timestamp": "2022-07-29 15:52:17 000",
      "blockNumber": "15238285",
      "transactionHash": "0x3be6334eedadf01030de25c51fe8cf6b028f2880a1ba3ed2892ad8c5c09612f8",
      "exchangeId": "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
      "exchangeName": "uniswapv2",
      "poolName": "DAI_WETH",
      "poolAddress": "0xa478c2975ab1ea89e8196811f51a7b7ade33eb11",
      "liquidity": [
        {
          "symbol": "DAI",
          "address": "0x6b175474e89094c44da98b954eedeac495271d0f",
          "tokenReserve": 7957095.723118426,
          "tokenLiquidity": 0.0005821127080778029
        }
      ],
      "totalPoolValue": 15935047.484709369,
      "lpTokenPrice": 143.18467671369504
    }
  ]
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

poolAddress
string
default:0xa478c2975ab1ea89e8196811f51a7b7ade33eb11
required

The pool to retrieve the most current data for. Must be the address of the pool. Example is DAI/ETH on uniswapv2.

Query Parameters

startDate
string<date-time>

FIlter by pairs after this date.

endDate
string<date-time>

FIlter by pairs before this date.

timeFormat
string

[Optional] Time format of the timestamps in the return payload.<BR/>[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable

size
integer
default:50

We recommend using a maximum page size of 50.

Response

200 - application/json

200

The response is of type object.