GET /pool/events/{chain}/{pair}/{direction}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/dextools/pool/events/{chain}/{pair}/{direction}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Cursor-paginated swap and liquidity events for a pair from a blockNumber/logIndex cursor.

Parameters

nameintypedescription
chainpathstrrequiredNetwork name or alias (ethereum, eth, matic, 137, solana, …)
example: ethereum
pairpathstrrequiredPair (pool) address.
example: 0xa43fe16908251ee70ef74718545e4fe6c5ccec9f
directionpathstr
desc | asc
requiredPagination direction from the cursor.
default: desc
example: desc
blockNumberqueryintrequiredBlock number cursor from data.next.blockNumber.
example: 26488360
logIndexqueryintoptionalLog index cursor from data.next.logIndex.
example: 367
limitqueryintoptionalMaximum events to return (up to 100).
default: 100
example: 20

Response

type: object
cursor key: next
pagination: cursor
sample: {
  "statusCode": "int",
  "data": "object"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/dextools/pool/events/ethereum/0xa43fe16908251ee70ef74718545e4fe6c5ccec9f/desc?blockNumber=26488360&logIndex=367&limit=20"