Query recent DEX trades by token, pool, or wallet.
GET /dex/v1/{network}/trades
Returns recent DEX trades filtered by token address, pool address, or signer wallet. Exactly one filter is required per request.
When filtering by token, the API resolves all known liquidity pools for that token and returns trades across all of them. When filtering by pool, trades for that specific pair are returned. When filtering by signer, all trades executed by that wallet are returned.
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
network | path | string | Yes | Network ID. |
token | query | string | One of three | Token address. Returns trades across all pools that include this token. |
pool | query | string | One of three | Pool / pair address. Returns trades on this specific liquidity pool. |
signer | query | string | One of three | Wallet address. Returns all trades executed by this wallet. |
sort | query | string | No | Sort direction by timestamp: desc (default, newest first) or asc (oldest first). |
limit | query | integer | No | Number of trades per page (1-200, default 50). |
cursor | query | string | No | Opaque pagination cursor from a previous response's next_cursor. |
Exactly one of
token,pool, orsignermust be provided. Sending zero or more than one returns400 Bad Request.
Example Request
By Token
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.insightx.network/dex/v1/sol/trades?token=pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn"By Pool
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.insightx.network/dex/v1/sol/trades?pool=BofA2ViUSudPBTUms2KRuG6AHNeMawjNfwqTJDgx5BKW"By Signer (Wallet)
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.insightx.network/dex/v1/sol/trades?signer=5Yqw3pMxstwjHDmPAQaWcKpVvehemtERaSGePRshDXtX"Response
{
"trades": [
{
"block_time": "2026-03-01T12:30:45.123456+00:00",
"block": 310500012,
"tx_signature": "5K8kL9...",
"dex": "raydium",
"dex_version": "v4",
"signer": "5Yqw3pMxstwjHDmPAQaWcKpVvehemtERaSGePRshDXtX",
"receiver": "5Yqw3pMxstwjHDmPAQaWcKpVvehemtERaSGePRshDXtX",
"pool_address": "BofA2ViUSudPBTUms2KRuG6AHNeMawjNfwqTJDgx5BKW",
"token_in": {
"address": "So11111111111111111111111111111111111111112",
"amount": 2.99252994,
"amount_usd": 262.36
},
"token_out": {
"address": "pumpCmXqMfrsAkQ5r49WcJnRayYRqmXz6ae8H7H9Dfn",
"amount": 5096335.626971,
"amount_usd": 261.70
},
"fee_usd": 0.66
}
],
"next_cursor": "eyJ0IjoiMjAyNi0wMy0wMVQxMjozMDo0NS4xMjM0NTYrMDA6MDAiLCJpIjoxOTg0Mzc2MjF9"
}Fields
Top Level
| Field | Type | Description |
|---|---|---|
trades | array | List of trade objects for the current page |
next_cursor | string or null | Opaque cursor for fetching the next page. null when there are no more results. |
Trade Object
| Field | Type | Description |
|---|---|---|
block_time | string | ISO 8601 timestamp of when the trade occurred on-chain |
block | integer | Block (slot) number when the trade occurred |
tx_signature | string | Transaction signature |
dex | string | DEX name (e.g. "raydium", "pumpfun", "cetus") |
dex_version | string | DEX version (e.g. "v4", "clmm", "whirlpool", "damm_v2") |
signer | string | Wallet address that signed the transaction |
receiver | string or null | Wallet address that received the output tokens (may differ from signer in routed swaps) |
pool_address | string or null | Liquidity pool address where the trade executed |
token_in | object | Input token details (see below) |
token_out | object | Output token details (see below) |
fee_usd | number or null | Trade fee in USD |
Token In / Token Out Object
| Field | Type | Description |
|---|---|---|
address | string | Token contract address |
amount | number | Amount in human-readable units (post-decimal) |
amount_usd | number or null | Amount in USD at the time of trade |
Pagination
This endpoint uses cursor-based pagination for consistent results even as new trades arrive in real time.
- Make your first request without a
cursorparameter. - If the response includes a non-null
next_cursor, pass it as thecursorquery parameter in your next request. - Repeat until
next_cursorisnull.
# Page 1
curl -H "X-API-Key: YOUR_KEY" \
"https://api.insightx.network/dex/v1/sol/trades?token=TOKEN&limit=50"
# Page 2 (using cursor from page 1)
curl -H "X-API-Key: YOUR_KEY" \
"https://api.insightx.network/dex/v1/sol/trades?token=TOKEN&limit=50&cursor=eyJ0IjoiMjAyNi0wMy0wMVQxMjozMDo0NS4xMjM0NTYrMDA6MDAiLCJpIjoxOTg0Mzc2MjF9"Use Cases
- Trade history -- fetch the full trading history for a token, pool, or wallet.
- Real-time feed -- poll with
sort=descand a short interval to display a live trade ticker. - Wallet analysis -- examine a specific wallet's trading activity across all DEXes.
- Pool monitoring -- track all trades on a specific liquidity pool.
- Token volume breakdown -- aggregate trades across all pools for a token to analyze volume distribution by DEX.
Network Support
| Network | Status |
|---|---|
Solana (sol) | Supported |
Sui (sui) | Supported |
| All other networks | Not supported (returns 422) |