# getExchangeVolumeChart

**Identifier:** `coingecko_getExchangeVolumeChart`

**Provider:** [CoinGecko](https://kirha.com/providers/coingecko.md)

Get historical trading volume data for a specific cryptocurrency exchange.

## Run it with the CLI

```bash
kirha tools run coingecko_getExchangeVolumeChart \
  --input '{
    "exchangeId": "binance"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "coingecko_getExchangeVolumeChart",
  "input": {
    "exchangeId": "binance"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "days": {
      "default": "7",
      "description": "Number of days of data to fetch",
      "enum": [
        "1",
        "7",
        "14",
        "30",
        "90",
        "180",
        "365"
      ],
      "type": "string"
    },
    "exchangeId": {
      "description": "The exchange identifier (e.g., 'binance', 'coinbase'). Use searchExchange to get the id.",
      "type": "string"
    }
  },
  "required": [
    "exchangeId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "volume": {
      "description": "Volume is expressed in BTC. Each point accounts for 24h volume, ordered chronologically (oldest first).",
      "items": {
        "additionalProperties": false,
        "properties": {
          "timestamp": {
            "type": "string"
          },
          "value": {
            "type": "number"
          }
        },
        "required": [
          "timestamp",
          "value"
        ],
        "type": "object"
      },
      "maxItems": 25,
      "minItems": 25,
      "type": "array"
    }
  },
  "required": [
    "context",
    "volume"
  ],
  "type": "object"
}
```

## Related tools

Other CoinGecko tools that this tool refers to, or that refer to it.

- [`searchExchange`](https://kirha.com/providers/coingecko/searchExchange.md)

-----

[All CoinGecko tools](https://kirha.com/providers/coingecko.md) · [< Back to tools list](https://kirha.com/tools.md)