GET
/
liquidity
/
providers
/
daily-return
/
{liquidityPoolAddress}
Provider Return Since Inception
curl --request GET \
  --url https://api.amberdata.com/market/defi/liquidity/providers/daily-return/{liquidityPoolAddress} \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "data": [
      {
        "protocol": "uniswapv2",
        "timestamp": 1659312000000,
        "poolAddress": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
        "holderAddress": "0x8409daf0d03ea176823b3c7240dc28ce371b1f8d",
        "token0Address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "token1Address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "firstLiquidityEvent": 1595210374000,
        "token0IfHeld": 172842.39755958083,
        "token1IfHeld": 455.6987418334881,
        "token0Lp": 173565.5069295104,
        "token1Lp": 453.9338557579364,
        "change0": -515.1028522903216,
        "change1": 2.297557274480937,
        "fees0Total": 208.00651763924665,
        "fees1Total": 0.5326711989292003,
        "fees0Unclaimed": -5.684341886080802e-14,
        "fees1Unclaimed": -1.1102230246251565e-16,
        "fees0Claimed": 208.0065176392467,
        "fees1Claimed": 0.5326711989292005,
        "price0": 0.99995684,
        "price1": 1677.24882261,
        "fees": 1101.4196813202036,
        "feesUnclaimed": -2.430529915875557e-13,
        "feesClaimed": 1101.4196813202038,
        "impermanentLoss": 3338.494613050975,
        "return": -2237.074931730772
      }
    ],
    "metadata": {
      "columns": [
        "protocol"
      ]
    }
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

liquidityPoolAddress
string
default:0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc
required

The address of the liquidity pool.

Query Parameters

addresses
string
default:0x8409daf0d03ea176823b3c7240dc28ce371b1f8d,0xba7ac1952db308b0a245bdb14440ca321afbb14a

A comma separated list of liquidity provider addresses. <BR>[Maximum] 10 addresses

date
string<date-time>
default:2022-09-28

The query date. If a non-midnight GMT 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.