---
title: volume() | Tiger Data Docs
description: Get the total volume from a candlestick aggregate
---

Since [1.14.0](https://github.com/timescale/timescaledb-toolkit/releases/tag/1.14.0)

Get the total volume from a candlestick aggregate.

## Arguments

The syntax is:

```
volume(
    candlestick Candlestick
) RETURNS DOUBLE PRECISION
```

| Name        | Type        | Default | Required | Description           |
| ----------- | ----------- | ------- | -------- | --------------------- |
| candlestick | Candlestick | -       | ✔        | Candlestick aggregate |

## Returns

| Column | Type             | Description                              |
| ------ | ---------------- | ---------------------------------------- |
| volume | DOUBLE PRECISION | Total volume of trades within the period |
