Get a wallet's individual trades on a single chain — DEX swaps (spot) or
Hyperliquid perpetual trades, newest first. Wallet-centric companion to
`token_dex_trades` (which is token-centric). Use it when the question
names one wallet, for example "when did this wallet open, add to,
reduce or close its BTC long on Hyperliquid".
Chain: one per call ('all'/'evm' unsupported). EVM wallets MUST pass `chain`
explicitly (e.g. ethereum, base, arbitrum); non-EVM (e.g. Solana) is
auto-detected. Use 'hyperliquid' for Hyperliquid perpetual trades
(requires an EVM address). Call once per chain to span multiple networks.
A `trader_id` instead of `address` returns the spot swaps of all wallets of a
trader, or the Hyperliquid perp position segments with chain `hyperliquid`.
Spot columns: Time, Bought / Bought Amount, Sold / Sold Amount, Value USD, Tx Hash.
Perp columns: Time, Token, Side, Action, Size, Price, Value USD, Fee USD,
Closed PnL, Tx Hash.
Sort (`order_by`, asc/desc): timestamp, value. Filter by `valueUsd`,
`tokenAddressBought`, or `tokenAddressSold`. On spot chains the token
fields take contract addresses. On Hyperliquid they take perp symbols and
select Long or Short trades respectively; only one token field is allowed.
A page shows at most 25 trades. For every total, min, max, mean, count or
list of tokens ("how much did it buy or sell", "total volume", "total
PnL", "average trade size", "which tokens"), use `columns` with
`aggregations`, also when the trades fit on one page. The tool then
computes the result from the raw values of all matching trades. Token
amounts are summed per token.
Examples:
# Latest trades
{
"address": "0x1f2f10d1c40777ae1da742455c65828ff36df387",
"chain": "ethereum",
"dateRange": {"from": "7D_AGO", "to": "NOW"}
}
# How much of each token the wallet bought on one day, all pages
{
"address": "0x1f2f10d1c40777ae1da742455c65828ff36df387",
"chain": "ethereum",
"dateRange": {"from": "2026-10-02", "to": "2026-10-02"},
"columns": ["bought_amount"],
"aggregations": ["sum"]
}
# Total closed PnL and fees of Hyperliquid perp trades in 7 days
{
"address": "0x90dbb196cacf24bd212b377a0dd62eaad5e8151b",
"chain": "hyperliquid",
"dateRange": {"from": "7D_AGO", "to": "NOW"},
"columns": ["closed_pnl", "fee_usd"],
"aggregations": ["sum"]
}