Portfolio Class

Represents a trading portfolio
[DataContract()] 
public class Portfolio
This language is not supported or no code example is available.
[DataContract()] 
public ref class Portfolio
This language is not supported or no code example is available.
public  
DataContract() 
class Portfolio
This language is not supported or no code example is available.
Name Description
Public constructor Portfolio(Framework, string) Initializes a new instance of the Portfolio class.
Public constructor Portfolio(string)
Top
Name Description
Public property Account Gets the account.
Public property AccountValue Gets the account value.
Public property ActiveOrdersValue
Public property Children
Public property Description
Public property Fills Gets the fills.
Public property Id
Public property IsLoaded
Public property IsOwnerAlgo
Public property Item(Instrument)
Public property Name Gets the name.
Public property Parent Gets or sets the parent.
Public property ParentId
Public property Performance Gets the performance.
Public property PositionValue Gets the position value.
Public property Positions Gets the positions.
Public property Pricer Gets the pricer.
Public property Statistics Gets the statistics.
Public property Transactions
Public property UpdateParent
Public property Value Gets the value.
Top
Methods
 
Name Description
Public method Add(AccountReport)
Public method Add(ExecutionReport)
Public method Add(Fill)
Public method GetAccountValue(byte)
Public method GetPosition(Instrument) Gets the position.
Public method GetPositionValue(byte)
Public method GetValue(byte)
Public method HasLongPosition(Instrument) Determines whether [has long position] [the specified instrument].
Public method HasLongPosition(Instrument, double) Determines whether [has long position] [the specified instrument].
Public method HasPosition(Instrument) Determines whether the specified instrument has position.
Public method HasPosition(Instrument, PositionSide, double) Determines whether the specified instrument has position.
Public method HasShortPosition(Instrument) Determines whether [has short position] [the specified instrument].
Public method HasShortPosition(Instrument, double) Determines whether [has short position] [the specified instrument].
Public method Init(Framework)
Public method ToString()
Top
Events
 
Name Description
Public event OnTradeInfo
Top
Remarks
 
A trading portfolio can be seen as a collection of portfolio positions.

In this article

Definition