NoMarkPrices

StockSharp.MatchingEngine

Prices for a portfolio with no market behind it: nothing is quoted, so every position is worth what it cost.

Implements: IMarkPrices

Properties

Instance
public static NoMarkPrices Instance { get; }
value = NoMarkPrices.Instance

The single instance.

Methods

TryGetClosePrice
public decimal? TryGetClosePrice(SecurityId securityId, Sides closeSide)
result = noMarkPrices.TryGetClosePrice(securityId, closeSide)

The price a position in can be closed at by an order of .

securityId
Instrument the position is held in.
closeSide
Side of the order that would close the position.

Returns: The price, or when the market has not named one.