Trades / swaps, and swap history of a wallet, pool or token
get_tradesLatest trades of a market, newest first. hypercore: fills of a coin (px, sz, side B = buyer aggressor / A, block time). hyperevm / elysium: DEX swaps of a pool (sender, amounts, px = pool price after the swap, USD value). Answer: an array of trades with only market / limit; one object {rows, next_cursor, coverage…} as soon as a history filter is given. History (hyperevm / elysium): pass trader (a wallet: every swap it sent), beneficiary (a wallet: every swap that paid it or took its tokens, smart-account swaps sent by a bundler included), pool or token (more than 20 pools: its priced swaps only, coverage: priced), optionally side, minUsd (USD at the swap), from / to (Unix ms): newest first, each row with its pool and symbols; filtered pages may hold fewer rows than limit, keep paging with next_cursor (null = no more).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end, Unix ms (exclusive) | |
| from | No | Window start, Unix ms (inclusive) | |
| pool | No | History of a pool (alias: market) | |
| side | No | Buys or sells of the base | |
| layer | No | Layer (default hypercore) | |
| limit | No | Rows (default 50) | |
| token | No | Swaps where this token is base or quote | |
| cursor | No | Next page: `next_cursor` of the previous answer | |
| market | No | Pair address (pool key) or coin; required without trader / beneficiary / pool / token | |
| minUsd | No | Smallest USD value (the indexer's, at the swap) | |
| trader | No | History of a wallet (tx.from of the swaps); a named wallet's handle works too | |
| network | No | Elysium network: mainnet or testnet, same answers (testnet USD values null). HyperCore and HyperEVM are always mainnet (default mainnet) | |
| beneficiary | No | History of a wallet as beneficiary: the swaps whose bought token it received or whose sold one it gave (a smart account's swaps sent by a bundler, a router paying out to it), and its own swaps that paid no other wallet; a named wallet's handle works too | |
| includeSpam | No | Swaps of spam tokens too (flagged) |