WsPortfolio

StockSharp.Ws

Wire DTO for PortfolioMessage — server→client snapshots of portfolio identity (currency / client / board). Portfolio-level numeric values (balance, P&L, etc.) live in PositionChangeMessage and ride through WsPositionChange.

Properties

BoardCode
public string BoardCode { get; set; }
value = wsPortfolio.BoardCode
wsPortfolio.BoardCode = value

Wire field boardCode.

ClientCode
public string ClientCode { get; set; }
value = wsPortfolio.ClientCode
wsPortfolio.ClientCode = value

Wire field clientCode.

Currency
public string Currency { get; set; }
value = wsPortfolio.Currency
wsPortfolio.Currency = value

Wire field currency.

OriginalTransactionId
public long? OriginalTransactionId { get; set; }
value = wsPortfolio.OriginalTransactionId
wsPortfolio.OriginalTransactionId = value

Wire field originalTransactionId.

PortfolioName
public string PortfolioName { get; set; }
value = wsPortfolio.PortfolioName
wsPortfolio.PortfolioName = value

Wire field portfolioName.

Methods

From
public static WsPortfolio From(PortfolioMessage msg)
result = WsPortfolio.From(msg)

From.

ToMessage
public PortfolioMessage ToMessage()
result = wsPortfolio.ToMessage()

ToMessage.