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

Retrieves historical trading volume chart data for an exchange over a specified number of days. Returns [timestamp, volume_in_btc] pairs with auto-adjusted granularity (10m/hourly/daily). Ideal for: tracking exchange volume trends, comparing exchange activity, building analytics dashboards.

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

Retrieves historical trading volume chart data for an exchange over a specified number of days. Returns [timestamp, volume_in_btc] pairs with auto-adjusted granularity (10m/hourly/daily). Ideal for: tracking exchange volume trends, comparing exchange activity, building analytics dashboards.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `coingecko-get-exchange-volume-chart` |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `coingecko`, `exchange`, `volume`, `chart`, `historical`, `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. |
| `days` | `number` | Yes | Number of days of data to retrieve. Allowed values: 1, 7, 14, 30, 90, 180, 365. |

## Result Schema

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

## Examples

**Workflow node**

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

```bash
curl -X POST "https://api.b3os.org/v1/actions/coingecko-get-exchange-volume-chart/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "exchangeId": "example-exchangeId",
    "days": 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.