Recent DEX trades
get_recent_tradesLatest DEX swaps, newest first, for exactly one of: a token (unit), a pool (poolId) or a wallet (address). Each trade has the time, DEX, side (buy/sell of the base token), amounts in and out (decimal-adjusted), price in ADA, value in ADA and USD, the trader's stake address and the transaction hash.
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_recent_trades"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Token unit: trades of this token. Give exactly one of unit, poolId, address. | |
| limit | No | How many trades to return (1-50, default 10). | |
| cursor | No | Value of `nextCursor` from the previous call, to get the next page. | |
| poolId | No | Pool id: trades in this pool. | |
| address | No | Wallet (addr1…, stake1… or $handle): trades made by this wallet. |