---
id: "P:cAlgo.API.CustomBar.Volume"
kind: "property"
type: "T:cAlgo.API.CustomBar"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/TimeFrame/Custom/CustomBar/Volume/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# CustomBar.Volume

Member of [CustomBar](https://help.ctrader.com/ctrader-algo/references/Plugin/TimeFrame/Custom/CustomBar/index.md).

## Volume

Gets volume of bar.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
public long Volume {get;}
```

Python:

```python
customBar.Volume: int
```

### Returns

`long` — 

Available since cAlgo.API 5.3.

### Examples

C#:

```csharp
var bar = new CustomBar(Server.Time, 1.1000, 1.1050, 1.0980, 1.1020, 1500);
Print("Bar volume: {0}", bar.Volume);
```

Python:

```python
bar = CustomBar(api.Server.Time, 1.1000, 1.1050, 1.0980, 1.1020, 1500)
api.Print(f"Bar volume: {bar.Volume}")
```

