GET /dex/dex/v1/swap/list
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/cmc/dex/dex/v1/swap/listCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeRecent swaps for a token (swaps rows with abbreviated fields such as ts, amounts, and exchange name).
name=dex_swaps. platform=solana. lastId is a response cursor and is not a registered request param.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
address | query | str | required | Token address. Wrapped SOL So11111111111111111111111111111111111111111 is the verified sample. example: So11111111111111111111111111111111111111111 |
platform | query | str | required | Lowercase. Verified value solana. example: solana |
limit | query | int | optional | Maximum rows to return. example: 50 |
sortBy | query | str | optional | Sort field. |
sortType | query | str | optional | Sort direction. |
Response
type: object
data key: swaps
cursor key: lastId
pagination: cursor
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/cmc/dex/dex/v1/swap/list?address=So11111111111111111111111111111111111111111&platform=solana&limit=50"