Portfolio

StockSharp.BusinessEntities

Portfolio, describing the trading account and the size of its generated commission.

Inherits: Position

Constructors

Portfolio
public Portfolio()
portfolio = Portfolio()

Initializes a new instance of the Portfolio.

Properties

AnonymousPortfolio
public static Portfolio AnonymousPortfolio { get; }
value = Portfolio.AnonymousPortfolio

Portfolio associated with the orders received through the orders log.

Board
public ExchangeBoard Board { get; set; }
value = portfolio.Board
portfolio.Board = value

Exchange board, for which the current portfolio is active.

Name
public string Name { get; set; }
value = portfolio.Name
portfolio.Name = value

Portfolio code name.

PortfolioName
public override string PortfolioName { get; }
value = portfolio.PortfolioName

Portfolio name.

Side
public override Sides? Side { get; set; }
value = portfolio.Side
portfolio.Side = value

Side.

State
public PortfolioStates? State { get; set; }
value = portfolio.State
portfolio.State = value

Portfolio state.

StrategyId
public override string StrategyId { get; set; }
value = portfolio.StrategyId
portfolio.StrategyId = value

Strategy id.

Methods

Clone
public override Position Clone()
result = portfolio.Clone()

Create a copy of Position.

Returns: Copy.

CopyTo
public void CopyTo(Portfolio destination)
portfolio.CopyTo(destination)

To copy the current portfolio fields to the .

destination
The portfolio, in which fields should be copied.
CreateSimulator
public static Portfolio CreateSimulator()
result = Portfolio.CreateSimulator()

Create virtual portfolio for simulation.

Returns: Simulator.

ToString
public override string ToString()
result = portfolio.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.