> ## 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 Exchange Volume Chart by Date Range

Retrieves historical trading volume for an exchange within a specific date range (max 31 days, Pro plan). Returns [timestamp, volume_in_btc] pairs with daily granularity for spot and derivatives exchanges. Ideal for: analyzing volume during events, custom period reports, investigating volume patterns.

![Get Exchange Volume Chart by Date Range logo](https://ai-icon.b3.fun/logo/coingecko)
Catalog action Blockchain Data

Retrieves historical trading volume for an exchange within a specific date range (max 31 days, Pro plan). Returns [timestamp, volume_in_btc] pairs with daily granularity for spot and derivatives exchanges. Ideal for: analyzing volume during events, custom period reports, investigating volume patterns.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `coingecko-get-exchange-volume-chart-range` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `coingecko`, `exchange`, `volume`, `chart`, `historical`, `range`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `exchangeId` | `string` | Yes | Exchange ID \(e.g., 'binance', 'coinbase-exchange'\). Also supports derivatives exchange IDs. Use /exchanges/list to find IDs. |
| `from` | `number` | Yes | Start date as Unix timestamp \(seconds\). |
| `to` | `number` | Yes | End date as Unix timestamp \(seconds\). Must be within 31 days of start date. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `exchangeId` | `string` | Yes | Exchange ID. |
| `volumes` | `array` | Yes | Array of daily volume data points |

## Examples

**Workflow node**

```json
{
  "type": "coingecko-get-exchange-volume-chart-range",
  "payload": {
    "exchangeId": "example-exchangeId",
    "from": 1,
    "to": 1
  },
  "children": []
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/coingecko-get-exchange-volume-chart-range/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "exchangeId": "example-exchangeId",
    "from": 1,
    "to": 1
  }
}'
```

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