> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

![Get Pool Trades logo](https://ai-icon.b3.fun/logo/coingecko)
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

**Workflow node**

```json
{
  "type": "coingecko-get-pool-trades",
  "payload": {
    "network": "example-network",
    "poolAddress": "0x0000000000000000000000000000000000000000"
  },
  "children": []
}
```
  **Test with API**

```bash
curl -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"
  }
}'
```

**Use expressions for dynamic values**

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.