---
id: "M:cAlgo.API.Internals.Symbol.NormalizeVolumeInUnits(System.Double,cAlgo.API.RoundingMode)"
kind: "method"
type: "T:cAlgo.API.Internals.Symbol"
url: "https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/Symbol/NormalizeVolumeInUnits/"
---

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

# Symbol.NormalizeVolumeInUnits

Member of [Symbol](https://help.ctrader.com/ctrader-algo/references/MarketData/Symbols/Symbol/index.md).

## NormalizeVolumeInUnits(double volume, RoundingMode roundingMode)

Round the volume to the amount suitable for a trade.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
double NormalizeVolumeInUnits(double volume, RoundingMode roundingMode)
```

Python:

```python
api.Symbol.NormalizeVolumeInUnits(volume: float, roundingMode: RoundingMode) -> float
```

### Parameters

- `volume` (`double`, Python `float`): Amount to normalize
- `roundingMode` (`RoundingMode`, Python `RoundingMode`): Rounding method

### Returns

`double` — Normalized volume

### Examples

C#:

```csharp
var volume = Symbol.NormalizeVolumeInUnits(12345.67, RoundingMode.Down);
Print("Normalized volume: {0}", volume);
```

Python:

```python
volume = api.Symbol.NormalizeVolumeInUnits(12345.67, RoundingMode.Down)
api.Print(f"Normalized volume: {volume}")
```

