GET
/
dex
/
{protocolId}
/
protocol
Protocol Lens
curl --request GET \
  --url https://api.amberdata.com/defi/dex/{protocolId}/protocol \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "metadata": {
      "next": "<any>"
    },
    "data": [
      {
        "event": "PairCreated(address token0, address token1, address pair, uint256)",
        "timestamp": "2022-07-03 00:00:08 000",
        "blockNumber": 15066169,
        "transactionHash": "0x9bcc2fdb2ddd4164882f2603c3c6bb1fdc3c5010b94778468b8c90debdb30cdb",
        "logIndex": 118,
        "poolAddress": "0x44636fa12c6e318a322fb6f09054864c8d4b1f9d",
        "token0": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
        "token1": "0xd2eb0c7a3fdbf6d7782ea2ac1df27aed03c1a1f3"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

protocolId
enum<string>
default:uniswapv3
required
Available options:
uniswapv2,
uniswapv3,
sushiswap,
curve

Query Parameters

startDate
string<date-time>

[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>

[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:
PairCreated,
PoolCreated

Response

200 - application/json

200

The response is of type object.