Skip to content

VolumeInUnitsMax Property

Summary

Gets the maximum tradable amount.

Signature

1
public abstract double VolumeInUnitsMax {get;}

Return Value

double

Declaring Type

cAlgo.API.Internals.Symbol

Examples

1
2
3
4
5
 if(Symbol.NormalizeVolumeInUnits(volume, RoundingMode.Down) <= Symbol.VolumeInUnitsMax)
 {
     volume = Symbol.NormalizeVolumeInUnits(volume, RoundingMode.Down);
     ExecuteMarketOrder(TradeType.Buy, Symbol, volume);
 }

Last update: December 5, 2022

Comments