GET
/
liquidity
/
{pool}
/
historical
Historical
curl --request GET \
  --url https://api.amberdata.com/market/defi/liquidity/{pool}/historical \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "metadata": {
      "dexPairs": {
        "exchangeId": "0x9deb29c9a4c7a88a3c0257393b7f3335338d9a9d",
        "exchangeName": "",
        "pairAddress": "0x60a26d69263ef43e9a68964ba141263f19d71d51",
        "pair": "DAI_WETH",
        "pairNormalized": "dai_weth",
        "baseAddress": "0x6b175474e89094c44da98b954eedeac495271d0f",
        "quoteAddress": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
      },
      "startDate": "2019-12-10T23:42:25.997Z",
      "endDate": "2020-12-10T23:42:25.997Z"
    },
    "data": [
      {
        "exchangeId": "0x9deb29c9a4c7a88a3c0257393b7f3335338d9a9d",
        "pairAddress": "0x60a26d69263ef43e9a68964ba141263f19d71d51",
        "address": "0x6b175474e89094c44da98b954eedeac495271d0f",
        "timestamp": 1629912617000,
        "transactionHash": "0x6484f3e97fc01910ab717e1c7f6fcaaf59b8032feff95c099338ff6f59ce1be7",
        "transactionIndex": 87,
        "logIndex": 120,
        "amount": "1411611.324297957739394798",
        "liquidityPrice": "0.00031220437746571611"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

pool
string
default:WBTC_WETH
required

The pool to retrieve the most current data. Can be the pool/pair symbols or address.

Query Parameters

exchange
string
default:uniswapv2

The exchange(s) for which to retrieve the data. Example: exchange=uniswapv3,curvev1

startDate
string<date-time>

FIlter by pairs after this date. <br />[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string<date-time>

FIlter by pairs before this date. <br />[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

timeFormat
string

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

Response

200 - application/json

200

The response is of type object.