TT API Developer Help 7.17.X
ProfitLoss Property (TradeSubscription)


Gets the total P&L for this subscription
Syntax
'Usage
 
Dim instance As TradeSubscription
Dim value As ProfitLossValue
 
value = instance.ProfitLoss
public ProfitLossValue ProfitLoss {get;}
public: __property ProfitLossValue get_ProfitLoss();
Exceptions
ExceptionDescription
InvalidOperationExceptionProfitLoss calculation not enabled. To enable Profit and Loss calculation, set the EnablePNL property to true.
Remarks

This property calculates the total P&L from all Fills that match this subscription's filters. To determine the value, the TT API uses the following calculation: ProfitLoss = OpenProfitLoss + RealizedProfitLoss.

Valid only if the EnablePNL property is true.
Requirements

None

See Also

Reference

TradeSubscription Class
TradeSubscription Members

 

 


Copyright © 2011-2018 Trading Technologies International, Inc.

Send Feedback