Pool Events
Retrieve all events (both liquidity and trading events) for a specific liquidity pool with pagination support.
Endpoint
GET /api/v1/partner/pool/event/allRequest Parameters
pool_address
string
No
The address of the liquidity pool.
protocols
string
No
Comma-separated list of protocol identifiers (e.g., cetus-clmm,aftermath-cpmm). Maximum 20 protocols per request.
action
string
No
Filter by action: join, exit, buy, sell, or multiple values separated by comma (e.g., join,exit or buy,sell). If omitted, all actions are returned.
limit
int
No
Number of records to return (default: 20, max: see backend config).
desc
bool
No
Fetch order: true for descending (default), false for ascending.
cursor
int64
No
Cursor for pagination.
from
int64
No
Start time filter (Unix millisecond timestamp). Must be used with to.
to
int64
No
End time filter (Unix millisecond timestamp). Must be used with from.
from_checkpoint
int64
No
Start checkpoint filter. Must be used with to_checkpoint.
to_checkpoint
int64
No
End checkpoint filter. Must be used with from_checkpoint.
List of Supported Protocols
See Pool Data Supported Protocol for the complete list of protocol identifiers and their names.
Pagination Notes:
If
desc=false,cursormust be provided.If
desc=true,cursorcan be omitted for the first page.If you want to fetch the latest events, you can omit
cursor, just providepool_addressandlimit.If you want to fetch the next page, you must provide
cursor.If you want to fetch the previous page, you must provide
cursorwithdesc=false.
Filter Notes:
Time Range: Both
fromandtomust be provided together. Maximum range is 60 days.Checkpoint Range: Both
from_checkpointandto_checkpointmust be provided together. Maximum range is 2 million checkpoints.Time and checkpoint filters can be used independently or together with other parameters.
Headers
x-api-key
No
API key for authorization.
cURL Examples
Get All Events
Filter by Action Type
Filter by Time Range
Filter by Checkpoint Range
Filter by Multiple Actions
Filter by Protocols
Filter by Protocols and Actions
Response Format
The endpoint returns a unified response containing both trade and liquidity events, sorted by timestamp.
Response Fields
code
number
No
HTTP status code (200 for success).
message
string
No
Status message.
data
array
No
Array of event objects.
pagination
object
No
Pagination info for next page.
Pagination Object
last_cursor
int64
Yes
Cursor for next page.
last_timestamp
int64
Yes
Deprecated: Timestamp for next page.
limit
int64
Yes
Page size.
Event Object Structure
Each event in the response contains the following base fields, with additional fields depending on the event type:
Base Event Fields
id
int64
No
Unique event ID.
timestamp
int64
No
Event timestamp (ms since epoch).
action
string
No
Event type: join, exit, or trade.
pool_address
string
No
Pool address.
coin_a_type
string
No
Coin A type.
coin_b_type
string
No
Coin B type.
coin_a_symbol
string
No
Coin A symbol.
coin_b_symbol
string
No
Coin B symbol.
amount_a
float
No
Amount of coin A.
amount_b
float
No
Amount of coin B.
amount_a_usd
float
No
USD value of amount A.
amount_b_usd
float
No
USD value of amount B.
tx_digest
string
No
Transaction digest.
sender
string
No
Sender address.
Additional Fields for Trade Events
price
float
Yes
Trade price (only present for trade events).
a_to_b
bool
Yes
Trade direction: true if A to B (only for trades).
source
string
Yes
Source DEX name (only for trade events, may be null).
Response Examples
Response when no data is available
Use Cases
This unified API is useful for:
Building comprehensive pool analytics dashboards with all event types
Creating unified timeline views of pool activity
Tracking complete pool history (trades and liquidity changes)
Analyzing correlations between trading and liquidity events
Building real-time pool monitoring systems
Creating detailed pool activity reports
Developing pool performance analytics tools
See also: Environment Setup
Last updated