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

# Exchange Type

> Trade volume in USD and trade count across all centralized and all decentralized exchanges. Two series, keyed centralized and decentralized; tracks the DEX share of trading.

|                  |                                                                                                                             |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------- |
| Access           | Market\_data\_unified                                                                                                       |
| Timeseries model | `exchange-type`: intervals `1d`, `1h`, series key `exchange-type` (Exchange Type), series must be named (up to 20 per call) |

## Endpoints

<CardGroup cols={2}>
  <Card title="Batch Get Exchange Type timeseries" icon="arrow-right" href="/api-reference/data-api/exchanges/timeseries-exchange-type">
    Up to 20 series in one request, named by Exchange Type in `series`.
  </Card>

  <Card title="Get Exchange Type timeseries" icon="arrow-right" href="/api-reference/data-api/exchanges/timeseries-exchange-type-by-id">
    One series over a time window, keyed by its Exchange Type.
  </Card>
</CardGroup>

## Metrics

2 metrics. Use the `Field` value in `selections`; every point starts with the timestamp and continues in this order.

| Field         | Name        | Type    | Unit | Description                             |
| ------------- | ----------- | ------- | ---- | --------------------------------------- |
| `volume`      | Volume      | float64 |      | The trade volume on the exchange in USD |
| `trade-count` | Trade Count | float64 |      | The number of trades on the exchange    |

## Example

```bash curl theme={null}
curl "https://api.blockworks.com/query/timeseries/exchange-type/1d/centralized?timeframe=7d&selections=volume,trade-count" \
  -H "X-Blockworks-API-Key: $BLOCKWORKS_API_KEY"
```

See [Get Exchange Type timeseries](/api-reference/data-api/exchanges/timeseries-exchange-type-by-id) for the response and the errors.
