GET
/
dex
/
{protocolId}
/
pools
/
{poolAddress}
Pool Lens
curl --request GET \
  --url https://api.amberdata.com/defi/dex/{protocolId}/pools/{poolAddress} \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "metadata": {
      "next": null
    },
    "data": [
      {
        "action": "Swap",
        "event": "Swap(index_topic_1 address sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, index_topic_2 address to)",
        "timestamp": "2022-01-03 23:36:52 000",
        "blockNumber": 13935536,
        "transactionHash": "0x0b5a9fd5544757f00ff257c543614653eaa12c2e6d6b7428daf4380125c9de46",
        "logIndex": 6,
        "poolAddress": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
        "token0": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "token1": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "sender": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57",
        "amount0In": "26823361137",
        "amount1In": "0",
        "amount0Out": "0",
        "amount1Out": "7118283966568551127",
        "amount0InNormalized": "26823.361137",
        "amount1InNormalized": "0.0",
        "amount0OutNormalized": "0.0",
        "amount1OutNormalized": "7.118283966568551",
        "to": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

protocolId
enum<string>
default:uniswapv2
required

[Examples] uniswapv3 | uniswapv2

Available options:
uniswapv2,
uniswapv3,
sushiswap,
curve
poolAddress
string
default:0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc
required

A token pair's liquidity pool address.<BR>List for uniswapv3.<BR>List for uniswapv2.<BR>List for curve.

Query Parameters

startDate
string<date-time>
default:2022-07-01

[Optional] Payload only includes data after this date (inclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string<date-time>
default:2022-07-10

[Optional] Payload only includes data before this date (exclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

size
integer

[Optional] Number of records per page. Defaults to 100 if not specified. Maximum is 1000.

timeFormat
enum<string>

[Optional] Time format of the timestamps in the return payload.<BR/>

Available options:
milliseconds,
ms,
iso,
iso8601,
hr,
human_readable
action
enum<string>

[Optional] Filter by action

Available options:
Mint,
Burn,
Swap,
AddLiquidity,
RemoveLiquidity

Response

200 - application/json

200

The response is of type object.