Click or drag to resize

ExtensionsGetCumulativeQuantity Method

To get a number of profitable contracts in the trade.

Namespace:  StockSharp.InteractiveBrokers
Assembly:  StockSharp.InteractiveBrokers (in StockSharp.InteractiveBrokers.dll) Version: (4.4.16)
public static Nullable<decimal> GetCumulativeQuantity(
	this MyTrade trade


Type: StockSharp.BusinessEntitiesMyTrade
Own trade.

Return Value

Type: NullableDecimal
A number of profitable contracts in the trade. If a number does not exist then will be returned.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MyTrade. 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