Table of Contents

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, 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

Portfolio

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

ExchangeBoard

Name

Portfolio code name.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "Name", Description = "PortfolioName", GroupName = "General")]
public string Name { get; set; }

Property Value

string

Side

Side.

[Browsable(false)]
public override Sides? Side { get; set; }

Property Value

Sides?

State

Portfolio state.

[DataMember]
[Display(ResourceType = typeof(LocalizedStrings), Name = "State", Description = "PortfolioState", GroupName = "General")]
[Browsable(false)]
public PortfolioStates? State { get; set; }

Property Value

PortfolioStates?

StrategyId

Strategy id.

[Browsable(false)]
public override string StrategyId { get; set; }

Property Value

string

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

destination Portfolio

The 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()

Returns

string