> For the complete documentation index, see [llms.txt](https://fto-2.gitbook.io/fto-indicators-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fto-2.gitbook.io/fto-indicators-docs/api-reference/current-symbol/volume.md).

# Volume

Get the volume for a bar on the chart symbol and timeframe.

## Signature

```typescript
Volume(index: number): number
```

## Parameters

| Name    | Type     | Required | Description                                                                                                                   |
| ------- | -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------- |
| `index` | `number` | Yes      | Valid reverse bar index: `0` = current bar, `1` = previous completed bar, higher = older; must satisfy `0 <= index < Bars()`. |

## Returns

The bar volume in the units supplied by the data source.

## Usage

* See [Bar indexing](/fto-indicators-docs/api-reference/current-symbol/bar-indexing.md): `0` = current/most recent bar; higher indexes = older bars.
* Bar `0` can still change while the bar is forming.
* Do not rely on invalid-index clamping. A negative index can expose a future bar when available or fail for missing data; other invalid indexes can also produce misleading results or throw.

{% hint style="info" %}
Bar `0` can still change while it is forming. Use index `1` for confirmed signals.
{% endhint %}

## Example

```typescript
const currentVolume = this.api.Volume(0)
const previousVolume = this.api.Volume(1)
const volumeExpanded = currentVolume > previousVolume
```

## Related API

* [Bar indexing](/fto-indicators-docs/api-reference/current-symbol/bar-indexing.md)
* [GetVolumeRange](/fto-indicators-docs/api-reference/current-symbol/get-volume-range.md)
* [iVolume](/fto-indicators-docs/api-reference/time-series/i-volume.md)
