GET
/
liquidity
/
pool
/
daily-return
/
{address}
Pool Total Return
curl --request GET \
  --url https://api.amberdata.com/market/defi/liquidity/pool/daily-return/{address} \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "data": [
      {
        "protocol": "uniswapv2",
        "timestamp": 1659312000000,
        "poolAddress": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
        "token0Address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "token1Address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "token0IfHeld": 15008838709.776917,
        "token1IfHeld": 29773533.69082796,
        "token0Lp": 15294357951.301,
        "token1Lp": 29715375.22871055,
        "change0": -191438842.72576022,
        "change1": 138779.38990348572,
        "fees0Total": 94080398.79838353,
        "fees1Total": 80620.92778596522,
        "price0": 0.99995684,
        "price1": 1677.24882261,
        "fees": 229297694.4951074,
        "impermanentLoss": 41336988.09284735,
        "return": 187960706.40226007
      }
    ],
    "metadata": {
      "columns": [
        "protocol"
      ]
    }
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

address
string
default:0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852
required

The address of the liquidity pool. (ex: WETH-USDT on Uniswap V2)

Query Parameters

date
string<date-time>
default:2022-08-01

The query date. If a non-midnight UTC timestamp is provided we default to the last one.

timeFormat
string
default:hr

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

Response

200 - application/json

200

The response is of type object.