Class Portfolio
- Namespace
- StockSharp.BusinessEntities
- Assembly
- StockSharp.BusinessEntities.dll
Portfolio, describing the trading account and the size of its generated commission.
[DataContract]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Portfolio", Description = "PortfolioDesc")]
public class Portfolio : Position, INotifyPropertyChangedEx, INotifyPropertyChanged, INotifyPropertyChanging, ILocalTimeMessage, IServerTimeMessage
- Inheritance
-
Portfolio
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Portfolio()
Initializes a new instance of the Portfolio.
public Portfolio()
Properties
AnonymousPortfolio
Portfolio associated with the orders received through the orders log.
public static Portfolio AnonymousPortfolio { get; }
Property Value
Board
Exchange board, for which the current portfolio is active.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Board", Description = "PortfolioBoard", GroupName = "General")]
public ExchangeBoard Board { get; set; }
Property Value
Name
Portfolio code name.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Name", Description = "PortfolioName", GroupName = "General")]
[BasicSetting]
public string Name { get; set; }
Property Value
PortfolioName
Portfolio name.
public override string PortfolioName { get; }
Property Value
Side
Side.
[Browsable(false)]
public override Sides? Side { get; set; }
Property Value
State
Portfolio state.
[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "State", Description = "PortfolioState", GroupName = "General")]
[Browsable(false)]
public PortfolioStates? State { get; set; }
Property Value
StrategyId
Strategy id.
[Browsable(false)]
public override string StrategyId { get; set; }
Property Value
Methods
Clone()
Create a copy of Position.
public override Position Clone()
Returns
- Position
Copy.
CopyTo(Portfolio)
To copy the current portfolio fields to the destination.
public void CopyTo(Portfolio destination)
Parameters
destinationPortfolioThe portfolio, in which fields should be copied.
CreateSimulator()
Create virtual portfolio for simulation.
public static Portfolio CreateSimulator()
Returns
- Portfolio
Simulator.
ToString()
public override string ToString()