Click or drag to resize

TraderHelperShrinkPrice Method (Order, ShrinkRules)

To cut the price for the order, to make it multiple of the minimal step, also to limit number of decimal places.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: (4.4.17)
public static void ShrinkPrice(
	this Order order,
	ShrinkRules rule = ShrinkRules.Auto


Type: StockSharp.BusinessEntitiesOrder
The order for which the price will be cut Price.
rule (Optional)
Type: StockSharp.AlgoShrinkRules
The price rounding rule.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Order. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also