Get Pool Trades
Retrieves recent trade history for a specific DEX pool (up to 300 trades from past 24 hours). Returns tx hash, prices, amounts, direction, and volume; filterable by minimum USD volume. Ideal for: whale watching on pools, trade flow analysis, monitoring large swaps, slippage calculation.
Catalog action Blockchain Data
Retrieves recent trade history for a specific DEX pool (up to 300 trades from past 24 hours). Returns tx hash, prices, amounts, direction, and volume; filterable by minimum USD volume. Ideal for: whale watching on pools, trade flow analysis, monitoring large swaps, slippage calculation.
At a Glance
| Field | Value |
|---|---|
| Action ID | coingecko-get-pool-trades |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | coingecko, onchain, pool, trades, swap, dex, read |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
network | string | Yes | Network ID (e.g., 'eth', 'solana'). |
poolAddress | string | Yes | Pool contract address. |
tradeVolumeInUsdGreaterThan | number | No | Filter trades by minimum USD volume (default: 0). |
token | string | No | Token filter: base, quote, or token address. |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
trades | array | Yes | List of trades from the past 24 hours (max 300). |
Examples
json{ "type": "coingecko-get-pool-trades", "payload": { "network": "example-network", "poolAddress": "0x0000000000000000000000000000000000000000" }, "children": []}
bashcurl -X POST "https://api.b3os.org/v1/actions/coingecko-get-pool-trades/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "network": "example-network", "poolAddress": "0x0000000000000000000000000000000000000000" }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
