Show / Hide Table of Contents

Class PnLQueue

Очередь расчета прибыли по потоку сообщений.

Inheritance
Object
PnLQueue
Namespace: StockSharp.Algo.PnL
Assembly: StockSharp.Algo.dll
Syntax
public class PnLQueue : Object

Constructors

PnLQueue(SecurityId)

Создать PnLQueue.

Declaration
public PnLQueue(SecurityId securityId)
Parameters
Type Name Description
SecurityId securityId

Security ID.

Properties

AskPrice

Последняя цена предложения.

Declaration
public Nullable<Decimal> AskPrice { get; }
Property Value
Type Description
Nullable<Decimal>

BidPrice

Последняя цена спроса.

Declaration
public Nullable<Decimal> BidPrice { get; }
Property Value
Type Description
Nullable<Decimal>

Leverage

Leverage.

Declaration
public Decimal Leverage { get; set; }
Property Value
Type Description
Decimal

LotMultiplier

Коэффициент объема между лотом и активом.

Declaration
public Decimal LotMultiplier { get; set; }
Property Value
Type Description
Decimal

PriceStep

Шаг цены инструмента.

Declaration
public Decimal PriceStep { get; }
Property Value
Type Description
Decimal

RealizedPnL

Realized profit.

Declaration
public Decimal RealizedPnL { get; }
Property Value
Type Description
Decimal

SecurityId

Security ID.

Declaration
public SecurityId SecurityId { get; }
Property Value
Type Description
SecurityId

StepPrice

Step price.

Declaration
public Nullable<Decimal> StepPrice { get; }
Property Value
Type Description
Nullable<Decimal>

TradePrice

Последняя цена тиковой сделки.

Declaration
public Nullable<Decimal> TradePrice { get; }
Property Value
Type Description
Nullable<Decimal>

UnrealizedPnL

Unrealized profit.

Declaration
public Nullable<Decimal> UnrealizedPnL { get; }
Property Value
Type Description
Nullable<Decimal>

Methods

Process(ExecutionMessage)

Рассчитать прибыльность сделки. Если сделка уже ранее была обработана, то возвращается предыдущая информация.

Declaration
public PnLInfo Process(ExecutionMessage trade)
Parameters
Type Name Description
ExecutionMessage trade

Trade.

Returns
Type Description
PnLInfo

Информация о новой сделке.

ProcessExecution(ExecutionMessage)

Обработать сообщение, содержащее информацию о тиковой сделке.

Declaration
public void ProcessExecution(ExecutionMessage execMsg)
Parameters
Type Name Description
ExecutionMessage execMsg

Сообщение, содержащее информацию о тиковой сделке.

ProcessLevel1(Level1ChangeMessage)

Обработать сообщение, содержащее рыночные данные.

Declaration
public void ProcessLevel1(Level1ChangeMessage levelMsg)
Parameters
Type Name Description
Level1ChangeMessage levelMsg

Сообщение, содержащее рыночные данные.

ProcessQuotes(QuoteChangeMessage)

Обработать сообщение, содержащее данные о стакане.

Declaration
public void ProcessQuotes(QuoteChangeMessage quoteMsg)
Parameters
Type Name Description
QuoteChangeMessage quoteMsg

Сообщение, содержащее данные о стакане.

Extension Methods

Paths.Serialize<T>(T, String)
Paths.Serialize<T>(T)
EditorExtensions.ToItemsSource(Object, Type, Nullable<Boolean>, Nullable<ListSortDirection>, Func<IItemsSourceItem, Boolean>, Func<Object, String>, Func<Object, String>)
XamlHelper.WpfCast<T>(Object)
XamlHelper.CopyToClipboard<T>(T)
XamlHelper.EnsureUIThread(Object)
☀
☾
In This Article
Back to top
Copyright © StockSharp.
☀
☾