Extensions
Extension class.
Properties
AllCandleTypes : IEnumerable<Type>
All registered candle types.
AllSecurity : SecurityMessage
"All securities" instance.
BestAskFields : CachedSynchronizedSet<Level1Fields>
Fields related to best ask.
BestBidFields : CachedSynchronizedSet<Level1Fields>
Fields related to best bid.
LastTradeFields : CachedSynchronizedSet<Level1Fields>
Fields related to last trade.
MarketDataMessageTypes : IEnumerable<MessageTypes>
Market-data message types.
TransactionalMessageTypes : IEnumerable<MessageTypes>
Transactional message types.
Methods
AddDelta(IOrderBookMessage, IOrderBookMessage) : QuoteChangeMessage
To add change to the first order book.
- from
- First order book.
- delta
- Change.
Returns: The changed order book.
AddDelta(IEnumerable<QuoteChange>, IEnumerable<QuoteChange>, bool) : QuoteChange[]
To add change to quote.
- fromQuotes
- Quotes.
- deltaQuotes
- Changes.
- isBids
- The indication of quotes direction.
Returns: Changed quotes.
AddMarketDataSupport(MessageAdapter)
Fill the SupportedInMessages message types related to market-data.
- adapter
- Adapter.
AddNotSupportedResultMessage(MessageAdapter, MessageTypes)
Add the message type info NotSupportedResultMessages.
- adapter
- Adapter.
- type
- Message type.
AddOrSubtractTradingDays(BoardMessage, DateTime, int, bool) : DateTime
To get date of day T +/- of N trading days.
- board
- Board info.
- date
- The start T date, to which are added or subtracted N trading days.
- n
- The N size. The number of trading days for the addition or subtraction.
- checkHolidays
- Whether to check the passed date for a weekday (Saturday and Sunday are days off, returned value for them is ).
Returns: The end T +/- N date.
AddSupportedCandleTimeFrames(MessageAdapter, IEnumerable<TimeSpan>)
Add time-frames into DateTime}).
- adapter
- Adapter.
- timeFrames
- Time-frames.
AddSupportedMarketDataType(MessageAdapter, DataType)
Add market data type into DateTime}).
- adapter
- Adapter.
- dataType
- Data type info.
AddSupportedMessage(MessageAdapter, MessageTypeInfo)
Add the message type info PossibleSupportedMessages.
- adapter
- Adapter.
- info
- Extended info for MessageTypes.
AddSupportedMessage(MessageAdapter, MessageTypes, bool?)
Add the message type info SupportedInMessages.
- adapter
- Adapter.
- type
- Message type.
- isMarketData
- is market-data type.
AddTransactionalSupport(MessageAdapter)
Fill the SupportedInMessages message types related to transactional.
- adapter
- Adapter.
Add``2(T, T, CurrencyTypes)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, PortfolioStates)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, DateTime)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, long)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, Sides)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, int)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, decimal)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, object)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, bool)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
Add``2(T, T, SecurityStates)
Add change into collection.
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
ApplyNewBalance(decimal?, decimal, long, ILogReceiver) : decimal
Check the possibility Balance change.
- currBal
- Current balance.
- newBal
- New balance.
- transactionId
- Transaction id.
- logs
- Logs.
Returns: New balance.
BuildIfNeed(IAsyncEnumerable<QuoteChangeMessage>, ILogReceiver) : IAsyncEnumerable<QuoteChangeMessage>
To build order books from incremental updates.
- books
- Order books (may be incremental).
- logs
- Logs.
Returns: Full order books.
BuildIfNeed(IEnumerable<QuoteChangeMessage>, ILogReceiver) : IAsyncEnumerable<QuoteChangeMessage>
Try build books by OrderBookIncrementBuilder in case of is incremental changes.
- books
- Order books.
- logs
- Logs.
Returns: Order books.
ChangeSupported(IMessageAdapter, bool, bool)
Change SupportedInMessages.
- adapter
- Adapter.
- add
- Command.
- isMarketData
- Message types.
CreateAdapter(Type, IdGenerator) : IMessageAdapter
Create IMessageAdapter.
- adapterType
- Adapter type.
- idGenerator
- Transaction id generator.
Returns: IMessageAdapter instance.
CreateAdapter(Type) : IMessageAdapter
Create IMessageAdapter instance.
- adapterType
- Adapter type.
Returns: IMessageAdapter instance.
CreateCandleMessage(Type) : CandleMessage
Create instance of CandleMessage.
- messageType
- The type of candle message.
Returns: Instance of CandleMessage.
CreateErrorResponse(Message, Exception, ILogReceiver, Func<DataType, long[]>) : Message
Create error response.
- message
- Original message.
- ex
- Error.
- logs
- Logs.
- getSubscribers
- Subscriber identifiers provider.
Returns: Error response.
CreateExecutorAndRun(TimeSpan, Action<Exception>, CancellationToken) : ChannelExecutor
Create and run ChannelExecutor.
- interval
- The time interval between processing of messages.
- errorHandler
- Error handler.
- token
- CancellationToken
Returns: ChannelExecutor
CreateNotSupported(long) : SubscriptionResponseMessage
Create non supported subscription response.
- id
- ID of the original message for which this message is a response.
Returns: Subscription response message.
CreateOrderCondition(IMessageAdapter) : OrderCondition
Create condition for order type Conditional, that supports the adapter.
- adapter
- Adapter.
Returns: Order condition.
CreateOrderCondition(Type) : OrderCondition
Create condition for order type Conditional, that supports the adapter.
- orderConditionType
- Type of OrderCondition.
Returns: Order condition.
CreateOrderLogMarketDepthBuilder(Type, SecurityId) : IOrderLogMarketDepthBuilder
Create IOrderLogMarketDepthBuilder instance.
- builderType
- Builder type.
- securityId
- Security ID.
Returns: IOrderLogMarketDepthBuilder instance.
CreateOrderReply(long, DateTime) : ExecutionMessage
Create order's transaction reply.
- transactionId
- Transaction ID.
- serverTime
- Server time.
Returns: The message contains information about the execution.
CreatePortfolioChangeMessage(IMessageAdapter, string) : PositionChangeMessage
Initializes a new instance of the PositionChangeMessage.
- adapter
- Trading system adapter.
- pfName
- Portfolio name.
Returns: Portfolio change message.
CreatePositionChangeMessage(IMessageAdapter, string, SecurityId, string) : PositionChangeMessage
Initializes a new instance of the PositionChangeMessage.
- adapter
- Trading system adapter.
- pfName
- Portfolio name.
- securityId
- Security ID.
- depoName
- The depositary where the physical security.
Returns: Position change message.
CreateReply(OrderMessage, Exception) : ExecutionMessage
Cast OrderMessage to the ExecutionMessage.
- message
- OrderMessage.
- error
- Error info.
Returns: ExecutionMessage.
CreateResponse(ISubscriptionMessage, Exception) : SubscriptionResponseMessage
Create subscription response.
- message
- Subscription.
- error
- Error info.
Returns: Subscription response message.
CreateResult(ISubscriptionMessage) : Message
Create SubscriptionOnlineMessage or SubscriptionFinishedMessage depends of To.
- message
- Subscription.
Returns: Message.
CreateSubscriptionResponse(long, Exception) : SubscriptionResponseMessage
Create subscription response.
- id
- ID of the original message for which this message is a response.
- error
- Error info.
Returns: Subscription response message.
DataTypeArgToString(Type, object) : string
Convert candle parameter into folder name replacing the reserved symbols.
- messageType
- The type of candle message.
- arg
- Candle arg.
Returns: Directory name.
DataTypeArgToString(DataType) : string
Convert candle parameter into folder name replacing the reserved symbols.
- dataType
- Data type info.
Returns: Directory name.
DataTypeToFileName(DataType) : string
Convert file name to DataType.
- dataType
- Data type info.
Returns: File name.
EnsureGetGenerator(SecurityIdGenerator) : SecurityIdGenerator
Returns the specified generator or the default in case of .
- generator
- SecurityIdGenerator
Returns: SecurityIdGenerator
EnsureToday(DateTime?) : DateTime?
Determines the specified date equals is Today and returns Today.
- date
- The specified date.
Returns: Result value.
EnsureToday(DateTime?, DateTime?) : DateTime?
Determines the specified date equals is Today and returns .
- date
- The specified date.
- todayValue
- Today value.
Returns: Result value.
FileNameToDataType(string) : DataType
Convert DataType to file name.
- fileName
- File name.
Returns: Data type info.
FillDefaultCryptoFields(SecurityId) : SecurityMessage
Fill default CryptoCurrency price and volume step by 0.00000001 value.
- secId
- Security ID.
Returns: A message containing info about the security.
FillDefaultCryptoFields(SecurityMessage) : SecurityMessage
Fill default CryptoCurrency price and volume step by 0.00000001 value.
- message
- A message containing info about the security.
Returns: A message containing info about the security.
Filter(IEnumerable<BoardMessage>, BoardLookupMessage) : IEnumerable<BoardMessage>
Filter boards by code criteria.
- boards
- All boards.
- criteria
- Criteria.
Returns: Found boards.
Filter(IEnumerable<SecurityMessage>, SecurityLookupMessage) : IEnumerable<BoardMessage>
To filter instruments by the given criteria.
- securities
- Securities.
- criteria
- Message security lookup for specified criteria.
Returns: Instruments filtered.
FilterTimeFrames(IEnumerable<DataType>) : IEnumerable<TimeSpan>
Extract time frames from the specified data types set.
- dataTypes
- Data types.
Returns: Possible time-frames.
Filter``1(IEnumerable<T>, DateTime, DateTime)
To filter messages for the given time period.
- messages
- All messages, in which the required shall be searched for.
- from
- The start date for searching.
- to
- The end date for searching.
Returns: Filtered messages.
FindAdapter``1(IMessageAdapterWrapper)
Find adapter by the specified type.
- wrapper
- Wrapping based adapter.
Returns: Found adapter or .
FindAdapter``1(IMessageAdapter)
Find adapter by the specified type.
- adapter
- Adapter.
Returns: Found adapter or .
FindById(IEnumerable<IMessageAdapter>, Guid) : IMessageAdapter
Get adapter by the specified key.
- adapters
- All available adapters.
- id
- Adapter identifier.
Returns: Found adapter or .
FormatToString(DataType) : ValueTuple<string, string>
Convert DataType to String value.
- dataType
- Data type info.
Returns: String value.
FromMicexCurrencyName(string) : ValueTuple<CurrencyTypes?, Exception>
To convert the currency name in the MICEX format into CurrencyTypes.
- name
- The currency name in the MICEX format.
Returns: Currency type. If the value is empty, will be returned.
FromMicexCurrencyName(string, Action<Exception>) : CurrencyTypes?
To convert the currency name in the MICEX format into CurrencyTypes.
- name
- The currency name in the MICEX format.
- errorHandler
- Error handler.
Returns: Currency type. If the value is empty, will be returned.
GetArg(MarketDataMessage) : T
Get typed argument.
- mdMsg
- Market-data message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
Returns: The additional argument, associated with data. For example, candle argument.
GetArg``1(MarketDataMessage)
Get typed argument.
- mdMsg
- Market-data message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
Returns: The additional argument, associated with data. For example, candle argument.
GetBalance(ExecutionMessage) : decimal
Get Balance.
- message
- The message contains information about the execution.
Returns: Order contracts balance.
GetBestAsk(IOrderBookMessage) : QuoteChange?
Get best ask.
- message
- Market depth.
Returns: Best ask, or , if no asks are empty.
GetBestBid(IOrderBookMessage) : QuoteChange?
Get best bid.
- message
- Market depth.
Returns: Best bid, or , if no bids are empty.
GetBestPair(IOrderBookMessage) : ValueTuple<QuoteChange?, QuoteChange?>
Get best pair.
- book
- IOrderBookMessage
Returns: Best pair.
GetCandleArgType(Type) : Type
Get candle arg type.
- candleMessageType
- Candle message type.
Returns: Candle arg type.
GetCandleBounds(TimeSpan, DateTime, TimeZoneInfo, WorkingTime) : Range<DateTime>
To get candle time frames relatively to the exchange working pattern.
- timeFrame
- The time frame for which you need to get time range.
- currentTime
- The current time within the range of time frames.
- timeZone
- Information about the time zone where the exchange is located.
- time
- The information about the exchange working pattern.
Returns: The candle time frames.
GetCandleBounds(TimeSpan, DateTime) : Range<DateTime>
To get candle time frames relatively to the exchange working pattern.
- timeFrame
- The time frame for which you need to get time range.
- currentTime
- The current time within the range of time frames.
Returns: The candle time frames.
GetDefaultHistoryStepSize(IMessageAdapter, SecurityId, DataType, TimeSpan) : TimeSpan
Get maximum size step allowed for historical download.
- adapter
- Trading system adapter.
- securityId
- SecurityId
- dataType
- Data type info.
- iterationInterval
- Interval between iterations.
Returns: Step.
GetDefaultMaxCount(DataType) : int?
Get maximum possible items count per single subscription request.
- dataType
- Data type info.
Returns: Max items count.
GetDelta(IEnumerable<QuoteChange>, IEnumerable<QuoteChange>, IComparer<decimal>) : QuoteChange[]
To calculate the change between quotes.
- from
- First quotes.
- to
- Second quotes.
- comparer
- The direction, showing the type of quotes.
Returns: Changes.
GetDelta(IOrderBookMessage, IOrderBookMessage) : QuoteChangeMessage
To calculate the change between order books.
- from
- First order book.
- to
- Second order book.
Returns: The order book, storing only increments.
GetLastTradePrice(Level1ChangeMessage) : decimal?
Get last tick trade price.
- message
- Market depth.
Returns: The middle of spread. Is , if quotes are empty.
GetMatchedVolume(IOrderMessage) : decimal?
To calculate the implemented part of volume for order.
- order
- The order, for which the implemented part of volume shall be calculated.
Returns: The implemented part of volume.
GetMedianPrice(ICandleMessage) : decimal
Calculate median price of candle.
- candle
- ICandleMessage
Returns: Median price.
GetOrderLogCancelReason(ExecutionMessage) : OrderLogCancelReasons
To get the reason for cancelling order in orders log.
- item
- Order log item.
Returns: The reason for order cancelling in order log.
GetPair(IOrderBookMessage, int) : ValueTuple<QuoteChange?, QuoteChange?>
To get a pair of quotes (bid + offer) by the depth index.
- book
- IOrderBookMessage
- depthIndex
- Depth index. Zero index means the best pair of quotes.
Returns: The pair of quotes. If the index is larger than book order depth, then the is returned.
GetPlazaTimeInForce(long) : TimeInForce?
Extract TimeInForce from bits flag.
- status
- Bits flag.
Returns: TimeInForce.
GetPreferredLanguage(MessageAdapterCategories?) : string
Get preferred language.
- categories
- Message adapter categories.
Returns: Language
GetPrice(IOrderBookMessage, Sides?) : decimal?
Get price by side.
- message
- IOrderBookMessage
- side
- Sides
Returns: Price.
GetPriceStep(int) : decimal
To get the price increment on the basis of accuracy.
- decimals
- Decimals.
Returns: Price step.
GetProcessorType(IBasketSecurityProcessorProvider, string) : Type
Get processor type.
- provider
- IBasketSecurityProcessorProvider
- basketCode
- Basket security type.
Returns: Processor type.
GetSecurityType(IBasketSecurityProcessorProvider, string) : Type
Get security type.
- provider
- IBasketSecurityProcessorProvider
- basketCode
- Basket security type.
Returns: Security type.
GetSecurityTypes(ISecurityTypesMessage) : HashSet<SecurityTypes>
Get SecurityTypes.
- message
- Message security lookup for specified criteria.
Returns: Securities types.
GetSpreadMiddle(decimal?, decimal?, decimal?) : decimal
Get middle of spread.
- bestBidPrice
- Best bid price.
- bestAskPrice
- Best ask price.
- priceStep
- PriceStep
Returns: The middle of spread. Is , if quotes are empty.
GetSpreadMiddle(decimal, decimal, decimal?) : decimal
Get middle of spread.
- bestBidPrice
- Best bid price.
- bestAskPrice
- Best ask price.
- priceStep
- PriceStep
Returns: The middle of spread. Is , if quotes are empty.
GetSpreadMiddle(IOrderBookMessage, decimal?) : decimal?
Get middle of spread.
- message
- Market depth.
- priceStep
- PriceStep
Returns: The middle of spread. Is , if quotes are empty.
GetSpreadMiddle(Level1ChangeMessage, decimal?) : decimal?
Get middle of spread.
- message
- Market depth.
- priceStep
- PriceStep
Returns: The middle of spread. Is , if quotes are empty.
GetSubscriptionIds(ISubscriptionIdMessage) : long[]
Get subscription identifiers from the specified message.
- message
- Message.
Returns: Identifiers.
GetTimeFrame(MarketDataMessage) : TimeSpan
Get time-frame from the specified market-data message.
- mdMsg
- Market-data message (uses as a subscribe/unsubscribe in outgoing case, confirmation event in incoming case).
Returns: Time-frame.
GetTimeFrameCount(Range<DateTime>, TimeSpan, WorkingTime) : long
To get the number of time frames within the specified time range.
- range
- The specified time range for which you need to get the number of time frames.
- timeFrame
- The time frame size.
- workingTime
- WorkingTime.
Returns: The received number of time frames.
GetTimeFrames(IMessageAdapter, SecurityId, DateTime?, DateTime?) : IEnumerable<TimeSpan>
Get possible time-frames for the specified instrument.
- adapter
- Trading system adapter.
- securityId
- Security ID.
- from
- The initial date from which you need to get data.
- to
- The final date by which you need to get data.
Returns: Possible time-frames.
GetTimeFramesAsync(IMessageAdapter, SecurityId, DateTime?, DateTime?) : IAsyncEnumerable<TimeSpan>
Get possible time-frames for the specified instrument.
- adapter
- Trading system adapter.
- securityId
- Security ID.
- from
- The initial date from which you need to get data.
- to
- The final date by which you need to get data.
Returns: Possible time-frames.
GetTopPairs(IOrderBookMessage, int) : IEnumerable<ValueTuple<QuoteChange?, QuoteChange?>>
To get a pair of quotes for a given book depth.
- book
- IOrderBookMessage
- depth
- Book depth. The counting is from the best quotes.
Returns: Spread.
GetTopQuotes(IOrderBookMessage, int) : IEnumerable<QuoteChange>
To get quotes for a given book depth.
- book
- IOrderBookMessage
- depth
- Book depth. Quotes are in order of price increasing from bids to offers.
Returns: Spread.
GetTradePrice(ExecutionMessage) : decimal
Get TradePrice.
- message
- The message contains information about the execution.
Returns: Trade price.
GetTradeVolume(ExecutionMessage) : decimal
Get TradeVolume.
- message
- The message contains information about the execution.
Returns: Trade volume.
GetTypicalPrice(ICandleMessage) : decimal
Calculate typical price of candle.
- candle
- ICandleMessage
Returns: Typical price.
GetUnderlyingCode(SecurityMessage) : string
Get underlying asset.
- secMsg
- SecurityMessage
Returns: Underlying asset.
Group(IOrderBookMessage, decimal) : QuoteChangeMessage
To group the order book by the price range.
- depth
- The order book to be grouped.
- priceRange
- The price range, for which grouping shall be performed.
Returns: The grouped order book.
Group(QuoteChange[], Sides, decimal) : QuoteChange[]
To group quotes by the price range.
- quotes
- Quotes to be grouped.
- side
- Side.
- priceRange
- The price range, for which grouping shall be performed.
Returns: Grouped quotes.
HasChanges``2(BaseChangeMessage<T, T>)
Determines the message contains any changes.
- message
- Change message.
Returns: Check result.
HasOrderId(OrderStatusMessage) : bool
Determines the specified message contains single order request.
- message
- Message.
Returns: Check result.
HasOrderInfo(ExecutionMessage) : bool
Determines whether the specified message contains order information.
- message
- The message.
Returns: if the specified message contains order information, otherwise, .
HasSubscriptionId(ISubscriptionIdMessage) : bool
Check subscription identifiers in the specified message.
- message
- Message.
Returns: Identifiers.
HasTradeInfo(ExecutionMessage) : bool
Determines whether the specified message contains trade information.
- message
- The message.
Returns: if the specified message contains trade information, otherwise, .
Invert(Sides) : Sides
To change the direction to opposite.
- side
- The initial direction.
Returns: The opposite direction.
IsAllSecurity(ISecurityIdMessage) : bool
Check if the specified ISecurityIdMessage is SecurityId).
- message
- ISecurityIdMessage
Returns: , if the specified ISecurityIdMessage is SecurityId), otherwise, .
IsAllSecurity(SecurityId) : bool
Check if the specified SecurityId is SecurityId).
- securityId
- SecurityId
Returns: , if the specified SecurityId is SecurityId), otherwise, .
IsAssociated(SecurityId, string) : bool
Is specified security id associated with the board.
- securityId
- Security ID.
- boardCode
- Board code.
Returns: , if associated, otherwise, .
IsBack(IMessage) : bool
Determines the specified message is loopback.
- message
- Message.
Returns: Is loopback message.
IsBasket(SecurityMessage) : bool
Is specified security is basket.
- security
- Security.
Returns: Check result.
IsBestAskField(Level1Fields) : bool
Is the specified Level1Fields is related to best ask.
- field
- Field.
Returns: Check result.
IsBestBidField(Level1Fields) : bool
Is the specified Level1Fields is related to best bid.
- field
- Field.
Returns: Check result.
IsBuildOnly(Type) : bool
Determines whether the specified candle type can build only from underlying data.
- candleType
- The type of candle message.
Returns: Check result.
IsCanceled(IOrderMessage) : bool
To check, whether the order was cancelled.
- order
- The order to be checked.
Returns: , if the order is cancelled, otherwise, .
IsCandle(MessageTypes) : bool
Determine the is candle data type.
- type
- Message type.
Returns: , if data type is candle, otherwise, .
IsCandleMessage(Type) : bool
Determines whether the specified message type is derived from CandleMessage.
- messageType
- The message type.
Returns: if the specified message type is derived from CandleMessage, otherwise, .
IsCandlesSupportedAsync(IMessageAdapter, MarketDataMessage, CancellationToken) : ValueTask<bool>
Determines whether the specified subscription request is supported by the adapter.
- adapter
- Adapter.
- subscription
- Subscription.
- cancellationToken
- CancellationToken
Returns: if the specified subscription request is supported, otherwise, .
IsContainsCandle(Level1ChangeMessage) : bool
To check, are there IsCandles in the level1 data.
- level1
- Level1 data.
Returns: The test result.
IsContainsQuotes(Level1ChangeMessage) : bool
To check, are there quotes in the level1.
- level1
- Level1 data.
Returns: Quotes.
IsContainsTick(Level1ChangeMessage) : bool
To check, are there tick data in the level1 data.
- level1
- Level1 data.
Returns: The test result.
IsFinal(OrderStates) : bool
Is the specified state is final (Done or Failed).
- state
- Order state.
Returns: Check result.
IsFinal(IOrderBookMessage) : bool
Determine whether the order book is final.
- depth
- Order book message.
Returns: , if the order book is final, otherwise .
IsFullEmpty(IOrderBookMessage) : bool
To determine, is the order book empty.
- depth
- Market depth.
Returns: , if order book is empty, otherwise, .
IsHalfEmpty(IOrderBookMessage) : bool
To determine, is the order book half-empty.
- depth
- Market depth.
Returns: , if the order book is half-empty, otherwise, .
IsHistoryOnly(ISubscriptionMessage) : bool
Determines the specified message contains historical request only.
- message
- Subscription.
Returns: Check result.
IsIndex(SecurityMessage) : bool
Is specified security is index.
- security
- Security.
Returns: Check result.
IsIntraday(TimeSpan) : bool
Determines the specified time-frame is intraday.
- tf
- Time-frame.
Returns: Check result.
IsLastTradeField(Level1Fields) : bool
Is the specified Level1Fields is related to last trade.
- field
- Field.
Returns: Check result.
IsLookup(MessageTypes) : bool
Determines the specified message type is lookup.
- type
- MessageTypes
Returns: Check result.
IsLookup(IMessage) : bool
Determines the specified message is lookup.
- message
- Message
Returns: Check result.
IsLookupAll(SecurityLookupMessage) : bool
Determine the contains lookup all filter.
- criteria
- The instrument whose fields will be used as a filter.
Returns: Check result.
IsMarketData(ExecutionMessage) : bool
Determines whether the contains market-data info.
- execMsg
- The message contains information about the execution.
Returns: Check result.
IsMarketData(IMessageAdapter) : bool
Is the specified adapter support market-data.
- adapter
- Adapter.
Returns: Check result.
IsMarketDataTypeSupportedAsync(IMessageAdapter, DataType, CancellationToken) : ValueTask<bool>
Determines whether the specified market-data type is supported by the adapter.
- adapter
- Adapter.
- type
- Message type.
- cancellationToken
- CancellationToken
Returns: if the specified message type is supported, otherwise, .
IsMatch(ExecutionMessage, OrderStatusMessage, ISet<OrderStates>) : bool
Determines the specified transaction is matched lookup criteria.
- transaction
- Transaction.
- criteria
- The order which fields will be used as a filter.
- states
- Filter order by the specified states.
Returns: Check result.
IsMatch(SecurityMessage, SecurityLookupMessage, HashSet<SecurityTypes>) : bool
Determines the specified security is matched lookup criteria.
- security
- Security.
- criteria
- Message security lookup for specified criteria.
- secTypes
- Securities types.
Returns: Check result.
IsMatch(SecurityMessage, SecurityLookupMessage) : bool
Determines the specified security is matched lookup criteria.
- security
- Security.
- criteria
- Message security lookup for specified criteria.
Returns: Check result.
IsMatch(ExecutionMessage, OrderStatusMessage) : bool
Determines the specified message is matched lookup criteria.
- transaction
- Transaction.
- criteria
- The message which fields will be used as a filter.
Returns: Check result.
IsMatch(PositionChangeMessage, PortfolioLookupMessage, bool) : bool
Determines the specified message is matched lookup criteria.
- position
- Position.
- criteria
- The message which fields will be used as a filter.
- compareName
- Fully compare PortfolioName.
Returns: Check result.
IsMatch(PortfolioMessage, PortfolioLookupMessage, bool) : bool
Determines the specified message is matched lookup criteria.
- portfolio
- Portfolio.
- criteria
- The message which fields will be used as a filter.
- compareName
- Fully compare PortfolioName.
Returns: Check result.
IsMatch(BoardMessage, BoardLookupMessage) : bool
Determines the specified message is matched lookup criteria.
- board
- Board.
- criteria
- The message which fields will be used as a filter.
Returns: Check result.
IsMatch(ISubscriptionIdMessage, MessageTypes, ISubscriptionMessage) : bool
Determines the specified message is matched lookup criteria.
- message
- Message.
- type
- Type
- criteria
- The message which fields will be used as a filter.
Returns: Check result.
IsMatched(IOrderMessage) : bool
To check, is the order matched completely.
- order
- The order to be checked.
Returns: , if the order is matched completely, otherwise, .
IsMatchedEmpty(IOrderMessage) : bool
To check, if no contract in order is implemented.
- order
- The order to be checked.
Returns: , if no contract is implemented, otherwise, .
IsMatchedPartially(IOrderMessage) : bool
To check, is a part of volume is implemented in the order.
- order
- The order to be checked.
Returns: , if part of volume is implemented, otherwise, .
IsMessageSupported(IMessageAdapter, MessageTypes) : bool
Determines whether the specified message type is contained in SupportedInMessages.
- adapter
- Adapter.
- type
- Message type.
Returns: if the specified message type is supported, otherwise, .
IsMoney(SecurityId) : bool
Check if the specified id is money id.
- secId
- The message contains information about the position changes.
Returns: Check result.
IsMoney(PositionChangeMessage) : bool
Determines the specified message contains Money position.
- posMsg
- The message contains information about the position changes.
Returns: Check result.
IsNotSupported(SubscriptionResponseMessage) : bool
Determines whether the reply contains the error NotSupported.
- message
- Reply.
Returns: Check result.
Iso10962(SecurityMessage) : string
To get the type for the instrument in the ISO 10962 standard.
- security
- Security.
Returns: Type in ISO 10962 standard.
Iso10962ToOptionType(string) : OptionTypes?
To convert the type in the ISO 10962 standard into OptionTypes.
- cfi
- Type in ISO 10962 standard.
Returns: Option type.
Iso10962ToSecurityType(string) : SecurityTypes?
To convert the type in the ISO 10962 standard into SecurityTypes.
- cfi
- Type in ISO 10962 standard.
Returns: Security type.
IsObsolete(Level1Fields) : bool
Is the specified Level1Fields was obsolete.
- field
- Level1Fields value.
Returns: , if obsolete, otherwise, not obsolete.
IsObsolete(PositionChangeTypes) : bool
Is the specified PositionChangeTypes was marked by ObsoleteAttribute.
- type
- PositionChangeTypes value.
Returns: , if obsolete, otherwise, not obsolete.
IsOk(IErrorMessage) : bool
Determines whether the reply contains an error Error.
- message
- IErrorMessage
Returns: Check result.
IsOrderLogCanceled(ExecutionMessage) : bool
To check, does the string contain the cancelled order.
- item
- Order log item.
Returns: , if the string contain the cancelled order, otherwise, .
IsOrderLogMatched(ExecutionMessage) : bool
To check, does the string contain the order matching.
- item
- Order log item.
Returns: , if the string contains order matching, otherwise, .
IsOrderLogRegistered(ExecutionMessage) : bool
To check, does the string contain the order registration.
- item
- Order log item.
Returns: , if the string contains the order registration, otherwise, .
IsPlazaSystem(long) : bool
Extract system attribute from the bits flag.
- status
- Bits flag.
Returns: if an order is system, otherwise, .
IsResultMessageNotSupported(IMessageAdapter, MessageTypes) : bool
Determines whether the specified message type is contained in NotSupportedResultMessages..
- adapter
- Adapter.
- type
- Message type.
Returns: if the specified message type is supported, otherwise, .
IsStorageSupported(DataType) : bool
Determines whether the specified data type is supported by the storage.
- dataType
- DataType
Returns: Check result.
IsSupportSecuritiesLookupAll(IMessageAdapter) : bool
Support lookup all securities.
- adapter
- Adapter.
Returns: Check result.
IsSupportStopLoss(IMessageAdapter) : bool
Determines whether the adapter support stop-loss orders.
- adapter
- Adapter.
Returns: Check result.
IsSupportTakeProfit(IMessageAdapter) : bool
Determines whether the adapter support take-profit orders.
- adapter
- Adapter.
Returns: Check result.
IsSupportWithdraw(IMessageAdapter) : bool
Determines whether the adapter support withdraw orders.
- adapter
- Adapter.
Returns: Check result.
IsToday(DateTime) : bool
To check the specified date is today.
- date
- The specified date.
Returns: if the specified date is today, otherwise, .
IsToday(DateTime?) : bool
To check the specified date is today.
- date
- The specified date.
Returns: if the specified date is today, otherwise, .
IsTransactional(IMessageAdapter) : bool
Is the specified adapter support transactions.
- adapter
- Adapter.
Returns: Check result.
IsWorkingDate(BoardMessage, DateTime, bool) : bool
To check, whether date is traded.
- board
- Board info.
- date
- The passed date to be checked.
- checkHolidays
- Whether to check the passed date for a weekday (Saturday and Sunday are days off, returned value for them is ).
Returns: , if the date is traded, otherwise, is not traded.
IsWorkingTime(BoardMessage, DateTime, bool?, WorkingTimePeriod) : bool
To check, whether the time is traded (has the session started, ended, is there a clearing).
- board
- Board info.
- time
- The passed time to be checked.
- isWorkingDay
- , if the date is traded, otherwise, is not traded.
- period
- Current working time period.
Returns: , if time is traded, otherwise, not traded.
IsWorkingTime(BoardMessage, DateTime) : bool
To check, whether the time is traded (has the session started, ended, is there a clearing).
- board
- Board info.
- time
- The passed time to be checked.
Returns: , if time is traded, otherwise, not traded.
Join(IOrderBookMessage, IOrderBookMessage) : QuoteChangeMessage
To merge the initial order book and its sparse representation.
- original
- The initial order book.
- rare
- The sparse order book.
Returns: The merged order book.
LastTradeDay(BoardMessage, DateTime, bool) : DateTime
Get last trade date.
- board
- Board info.
- date
- The date from which to start checking.
- checkHolidays
- Whether to check the passed date for a weekday (Saturday and Sunday are days off, returned value for them is ).
Returns: Last trade date.
LookupByCode(ISecurityMessageProvider, string, SecurityTypes?) : IEnumerable<SecurityMessage>
To get the instrument by the instrument code.
- provider
- The provider of information about instruments.
- code
- Security code.
- type
- Security type.
Returns: The got instrument. If there is no instrument by given criteria, is returned.
LookupByCodeAsync(ISecurityMessageProvider, string, SecurityTypes?) : IAsyncEnumerable<SecurityMessage>
To get the instrument by the instrument code.
- provider
- The provider of information about instruments.
- code
- Security code.
- type
- Security type.
Returns: The got instrument. If there is no instrument by given criteria, is returned.
LookupMessageById(ISecurityMessageProvider, SecurityId) : SecurityMessage
To get the instrument by the identifier.
- provider
- ISecurityMessageProvider
- id
- Security ID.
Returns: The got instrument. If there is no instrument by given criteria, is returned.
LookupMessages(ISecurityMessageProvider, SecurityLookupMessage) : IEnumerable<SecurityMessage>
Lookup securities by criteria .
- provider
- ISecurityMessageProvider
- criteria
- Message security lookup for specified criteria.
Returns: Found instruments.
LoopBack``1(T, IMessageAdapter, MessageBackModes)
Made the specified message as BackMode.
- message
- Message.
- adapter
- Adapter.
- mode
- Back mode.
Returns: Message.
MakeVectorIconUri(string) : Uri
get icon uri
NearestSupportedDepth(IMessageAdapter, int) : int?
Get the nearest supported depth for the specified.
- adapter
- Adapter.
- depth
- Depth.
Returns: Supported depth.
PnF(PnFArg) : DataType
Create data type info for PnFCandleMessage.
- arg
- Candle arg.
Returns: Data type info.
Portfolio(string) : DataType
Create data type info for PortfolioMessage.
- portfolioName
- Portfolio name.
Returns: Data type info.
Range(Unit) : DataType
Create data type info for RangeCandleMessage.
- arg
- Candle arg.
Returns: Data type info.
RegisterCandleType``1(Type, MessageTypes, string, Func<string, T>, Func<T, string>, Func<T, bool>, bool)
Register new candle type.
- messageType
- The type of candle message.
- type
- Message type.
- fileName
- File name.
- argParse
- String to converter.
- argToString
- to String converter.
- argValidator
- Arg validator.
- isBuildOnly
- The candle type can build only from underlying data.
RemoveMarketDataSupport(MessageAdapter)
Remove from SupportedInMessages message types related to market-data.
- adapter
- Adapter.
RemoveNotSupportedResultMessage(MessageAdapter, MessageTypes)
Remove the message type from NotSupportedResultMessages.
- adapter
- Adapter.
- type
- Message type.
RemoveSupportedAllMarketDataTypes(MessageAdapter)
Remove all market data types from DateTime}).
- adapter
- Adapter.
RemoveSupportedMarketDataType(MessageAdapter, DataType)
Remove market data type from DateTime}).
- adapter
- Adapter.
- type
- Market data type.
RemoveSupportedMessage(MessageAdapter, MessageTypes)
Remove the message type from PossibleSupportedMessages.
- adapter
- Adapter.
- type
- Message type.
RemoveTransactionalSupport(MessageAdapter)
Remove from SupportedInMessages message types related to transactional.
- adapter
- Adapter.
Renko(Unit) : DataType
Create data type info for RenkoCandleMessage.
- arg
- Candle arg.
Returns: Data type info.
ReplaceSecurityId(Message, SecurityId) : Message
Replace security id by the specified.
- message
- Message.
- securityId
- Security ID.
Returns: Message.
SafeGetOrderId(ExecutionMessage) : long
To get order identifier, or discard exception, if no information available.
- message
- Operations.
Returns: Order ID.
SafeGetVolume(ExecutionMessage) : decimal
To get the number of operations, or discard the exception, if no information available.
- message
- Operations.
Returns: Quantity.
SetNativeId(SecurityId, object) : SecurityId
Initialize Native.
- secId
- Security ID.
- nativeId
- Native (internal) trading system security id.
Returns: Security ID.
SetSecurityCode(SecurityMessage, string)
Initialize SecurityCode.
- message
- A message containing info about the security.
- secCode
- Security code.
SetSecurityTypes(ISecurityTypesMessage, SecurityTypes?, IEnumerable<SecurityTypes>)
Initialize SecurityTypes.
- message
- Message security lookup for specified criteria.
- type
- Security type.
- types
- Securities types.
SetSubscriptionIds``1(T, long[], long)
Set subscription identifiers into the specified message.
- message
- Message.
- subscriptionIds
- Identifiers.
- subscriptionId
- Identifier.
Returns: Message.
ShrinkPrice(decimal, decimal?, int?, ShrinkRules) : decimal
To cut the price, to make it multiple of minimal step, also to limit number of signs after the comma.
- price
- The price to be made multiple.
- priceStep
- Price step.
- decimals
- Number of digits in price after coma.
- rule
Returns: The multiple price.
ShrinkPrice(decimal, SecurityMessage, ShrinkRules) : decimal
To cut the price, to make it multiple of minimal step, also to limit number of signs after the comma.
- price
- The price to be made multiple.
- secMsg
- SecurityMessage
- rule
Returns: The multiple price.
Sparse(QuoteChange, QuoteChange, decimal, decimal?, int) : QuoteChange[]
To create form pair of quotes a sparse collection of quotes, which will be included into the range between the pair.
- bid
- Bid.
- ask
- Ask.
- priceRange
- Minimum price step.
- priceStep
- Security price step.
- maxDepth
- Max depth.
Returns: The sparse collection of quotes.
Sparse(QuoteChange[], Sides, decimal, decimal?, int) : QuoteChange[]
To create the sparse collection of quotes from regular quotes.
- quotes
- Regular quotes. The collection shall contain quotes of the same direction (only bids or only offers).
- side
- Side.
- priceRange
- Minimum price step.
- priceStep
- Security price step.
- maxDepth
- Max depth.
Returns: The sparse collection of quotes.
Sparse(IOrderBookMessage, decimal, decimal?, int) : QuoteChangeMessage
To create from regular order book a sparse one.
- depth
- The regular order book.
- priceRange
- Minimum price step.
- priceStep
- Security price step.
- maxDepth
- Max depth.
Returns: The sparse order book.
Tick(int) : DataType
Create data type info for TickCandleMessage.
- arg
- Candle arg.
Returns: Data type info.
TimeFrame(TimeSpan) : DataType
Create data type info for TimeFrameCandleMessage.
- tf
- Candle arg.
Returns: Data type info.
ToCandleMessage(MessageTypes) : Type
Cast candle type MessageTypes to the message CandleMessage.
- type
- Candle type.
Returns: Message type CandleMessage.
ToCandleMessageType(MessageTypes) : Type
To convert the type of message MessageTypes into type of candles CandleMessage.
- type
- Message type.
Returns: Candles type.
ToDataType(string, string) : DataType
Convert String to DataType value.
- type
- type.
- arg
- Arg.
Returns: Data type info.
ToDataType(ExecutionTypes) : DataType
Convert ExecutionTypes to DataType value.
- type
- ExecutionTypes.
Returns: DataType.
ToDataTypeArg(Type, string) : object
To convert string representation of the candle argument into typified.
- messageType
- The type of candle message.
- str
- The string representation of the argument.
Returns: Argument.
ToErrorMessage(Exception, long) : ErrorMessage
Convert error info into ErrorMessage.
- error
- Error info.
- originalTransactionId
- ID of the original message TransactionId for which this message is a response.
Returns: Error message.
ToErrorMessage(string) : ErrorMessage
Convert error text message to ErrorMessage instance.
- description
- Error text message.
Returns: ErrorMessage instance.
ToExec(OrderRegisterMessage) : ExecutionMessage
Convert OrderRegisterMessage to ExecutionMessage.
- regMsg
- The message containing the information for the order registration.
Returns: The message contains information about the execution.
ToExecutionType(DataType) : ExecutionTypes
Convert DataType to ExecutionTypes value.
- type
- DataType.
Returns: ExecutionTypes.
ToInfo(MessageTypes, bool?) : MessageTypeInfo
Convert MessageTypes to MessageTypeInfo value.
- type
- MessageTypes value.
- isMarketData
- Market data.
Returns: MessageTypeInfo value.
ToLevel1(IOrderBookMessage) : IAsyncEnumerable<Level1ChangeMessage>
Convert IOrderBookMessage to Level1ChangeMessage value.
- message
- IOrderBookMessage instance.
Returns: Level1ChangeMessage instance.
ToLevel1(ExecutionMessage) : IAsyncEnumerable<Level1ChangeMessage>
Convert ExecutionMessage to Level1ChangeMessage value.
- message
- ExecutionMessage instance.
Returns: Level1ChangeMessage instance.
ToLevel1(IEnumerable<QuoteChangeMessage>) : IAsyncEnumerable<Level1ChangeMessage>
To build level1 from the order books.
- quotes
- Order books.
Returns: Level1.
ToLevel1(IEnumerable<ExecutionMessage>, IOrderLogMarketDepthBuilder, TimeSpan) : IAsyncEnumerable<Level1ChangeMessage>
To build level1 from the orders log.
- items
- Orders log lines.
- builder
- Order log to market depth builder.
- interval
- The interval of the order book generation. The default is Zero, which means order books generation at each new item of orders log.
Returns: Tick trades.
ToLevel1(IAsyncEnumerable<QuoteChangeMessage>) : IAsyncEnumerable<Level1ChangeMessage>
To build level1 from the order books.
- quotes
- Order books.
Returns: Level1.
ToLevel1(IAsyncEnumerable<ExecutionMessage>, IOrderLogMarketDepthBuilder, TimeSpan) : IAsyncEnumerable<Level1ChangeMessage>
To build level1 from the orders log.
- items
- Orders log lines.
- builder
- Order log to market depth builder.
- interval
- The interval of the order book generation. The default is Zero, which means order books generation at each new item of orders log.
Returns: Tick trades.
ToLevel1(CandleMessage) : IAsyncEnumerable<Level1ChangeMessage>
Convert CandleMessage to Level1ChangeMessage value.
- message
- CandleMessage instance.
Returns: Level1ChangeMessage instance.
ToMessage(ConnectionStates) : Message
Convert ConnectionStates to Message.
- state
- ConnectionStates value.
Returns: Message value.
ToMessageType(Type) : MessageTypes
Convert Type to MessageTypes value.
- type
- Type value.
Returns: MessageTypes value.
ToMessageType(MessageTypes) : MessageTypes
Convert MessageTypes to Type value.
- type
- MessageTypes value.
Returns: Type value.
ToMessageType(string) : MessageTypes
Convert String into MessageTypes.
- str
- String
Returns: MessageTypes
ToMessageType2(DataType) : MessageTypes
Convert DataType to MessageTypes value.
- type
- DataType value.
Returns: Message type.
ToMicexCurrencyName(CurrencyTypes) : string
To convert the currency type into the name in the MICEX format.
- type
- Currency type.
Returns: The currency name in the MICEX format.
ToNullableSecurityId(string, SecurityIdGenerator) : SecurityId
Convert String to SecurityId value.
- id
- String value.
- generator
- The instrument identifiers generator SecurityId. Can be .
Returns: SecurityId value.
ToOrderBooks(IEnumerable<Level1ChangeMessage>) : IAsyncEnumerable<QuoteChangeMessage>
To convert level1 data into order books.
- level1
- Level1 data.
Returns: Market depths.
ToOrderBooks(IAsyncEnumerable<Level1ChangeMessage>) : IAsyncEnumerable<QuoteChangeMessage>
To convert level1 data into order books.
- level1
- Level1 data.
Returns: Market depths.
ToOrderBooks(IAsyncEnumerable<ExecutionMessage>, IOrderLogMarketDepthBuilder, TimeSpan, int) : IAsyncEnumerable<QuoteChangeMessage>
Build market depths from order log.
- items
- Orders log lines.
- builder
- Order log to market depth builder.
- interval
- The interval of the order book generation. The default is Zero, which means order books generation at each new item of orders log.
- maxDepth
- The maximal depth of order book. The default is MaxValue, which means endless depth.
Returns: Market depths.
ToOrderBooks(IEnumerable<ExecutionMessage>, IOrderLogMarketDepthBuilder, TimeSpan, int) : IAsyncEnumerable<QuoteChangeMessage>
Build market depths from order log.
- items
- Orders log lines.
- builder
- Order log to market depth builder.
- interval
- The interval of the order book generation. The default is Zero, which means order books generation at each new item of orders log.
- maxDepth
- The maximal depth of order book. The default is MaxValue, which means endless depth.
Returns: Market depths.
ToOrderSnapshot(IEnumerable<ExecutionMessage>, long, ILogReceiver) : ExecutionMessage
Convert order changes to final snapshot.
- diffs
- Changes.
- transactionId
- Transaction ID.
- logs
- Logs.
Returns: Snapshot.
ToReadableString(DataType) : string
Convert DataType to readable string.
- dt
- DataType instance.
Returns: Readable string.
ToReg(ExecutionMessage) : OrderRegisterMessage
Convert ExecutionMessage to OrderRegisterMessage.
- execMsg
- The message contains information about the execution.
Returns: The message containing the information for the order registration.
ToSecurityId(string, SecurityIdGenerator) : SecurityId
Convert String to SecurityId value.
- id
- String value.
- generator
- The instrument identifiers generator SecurityId. Can be .
Returns: SecurityId value.
ToStringId(SecurityId, SecurityIdGenerator, bool) : string
Convert SecurityId to SecurityId value.
- securityId
- SecurityId value.
- generator
- The instrument identifiers generator SecurityId. Can be .
- nullIfEmpty
- Return if SecurityId is empty.
Returns: SecurityId value.
ToTick(ExecutionMessage) : ExecutionMessage
To tick trade from the order log.
- item
- Order log item.
Returns: Tick trade.
ToTick(Level1ChangeMessage) : ExecutionMessage
To convert level1 data into tick data.
- level1
- Level1 data.
Returns: Tick data.
ToTicks(IAsyncEnumerable<Level1ChangeMessage>) : IAsyncEnumerable<ExecutionMessage>
To convert level1 data into tick data.
- level1
- Level1 data.
Returns: Tick data.
ToTicks(IAsyncEnumerable<ExecutionMessage>) : IAsyncEnumerable<ExecutionMessage>
To build tick trades from the orders log.
- items
- Orders log lines.
Returns: Tick trades.
ToTicks(IEnumerable<ExecutionMessage>) : IAsyncEnumerable<ExecutionMessage>
To build tick trades from the orders log.
- items
- Orders log lines.
Returns: Tick trades.
ToTicks(IEnumerable<Level1ChangeMessage>) : IAsyncEnumerable<ExecutionMessage>
To convert level1 data into tick data.
- level1
- Level1 data.
Returns: Tick data.
ToType(PositionChangeTypes) : Type
Convert PositionChangeTypes to Type value.
- type
- PositionChangeTypes value.
Returns: Type value.
ToType(Level1Fields) : Type
Convert Level1Fields to Type value.
- field
- Level1Fields value.
Returns: Type value.
Truncate(IOrderBookMessage, int) : QuoteChangeMessage
Truncate the specified order book by max depth value.
- depth
- Order book.
- maxDepth
- The maximum depth of order book.
Returns: Truncated order book.
TryAdd``2(T, T, int?, bool)
To add a change to the collection, if value is other than 0 and .
- message
- Change message.
- type
- Change type.
- value
- Change value.
- isZeroAcceptable
- Is zero value is acceptable values.
Returns: Change message.
TryAdd``2(T, T, string)
To add a change to the collection, if value is other than .
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
TryAdd``2(T, T, int, bool)
To add a change to the collection, if value is other than 0.
- message
- Change message.
- type
- Change type.
- value
- Change value.
- isZeroAcceptable
- Is zero value is acceptable values.
Returns: Change message.
TryAdd``2(T, T, decimal?, bool)
To add a change to the collection, if value is other than 0 and .
- message
- Change message.
- type
- Change type.
- value
- Change value.
- isZeroAcceptable
- Is zero value is acceptable values.
Returns: Change message.
TryAdd``2(T, T, decimal, bool)
To add a change to the collection, if value is other than 0.
- message
- Change message.
- type
- Change type.
- value
- Change value.
- isZeroAcceptable
- Is zero value is acceptable values.
Returns: Change message.
TryAdd``2(T, T, bool?)
To add a change to the collection, if value is other than .
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
TryAdd``2(T, T, DateTime?)
To add a change to the collection, if value is other than .
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
TryAdd``2(T, T, PortfolioStates?)
To add a change to the collection, if value is other than .
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
TryAdd``2(T, T, CurrencyTypes?)
To add a change to the collection, if value is other than .
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
TryAdd``2(T, T, SecurityStates?)
To add a change to the collection, if value is other than .
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
TryAdd``2(T, T, Sides?)
To add a change to the collection, if value is other than .
- message
- Change message.
- type
- Change type.
- value
- Change value.
Returns: Change message.
TryAdd``2(T, T, long?, bool)
To add a change to the collection, if value is other than 0 and .
- message
- Change message.
- type
- Change type.
- value
- Change value.
- isZeroAcceptable
- Is zero value is acceptable values.
Returns: Change message.
TryAdd``2(T, T, long, bool)
To add a change to the collection, if value is other than 0.
- message
- Change message.
- type
- Change type.
- value
- Change value.
- isZeroAcceptable
- Is zero value is acceptable values.
Returns: Change message.
TryFillUnderlyingId(SecurityMessage, string) : SecurityMessage
Fill UnderlyingSecurityId property.
- secMsg
- SecurityMessage
- underlyingCode
- Underlying asset id.
Returns: SecurityMessage
TryGetDecimal``2(T, T)
Try get change from message.
- message
- Change message.
- type
- Change type.
Returns: Change value.
TryGetSecurityId(Message) : SecurityId?
Try get security ID from the specified message.
- message
- Message.
Returns: Security ID or if message do not provide it.
TryGetServerTime(Message, DateTime) : bool
Try get message server time.
- message
- Message.
- serverTime
- Server time. If the value is , the message does not contain the server time.
Returns: Operation result.
TryGetVectorIcon(Type) : Uri
Try get Icon path.
- type
- Component type with applied VectorIconAttribute.
Returns: Icon url.
TryGet``2(T, T)
Try get change from message.
- message
- Change message.
- type
- Change type.
Returns: Change value.
TryInitLocalTime(Message, ILogSource)
Try to initialize LocalTime by CurrentTime.
- message
- Message.
- source
- Source.
TryLimitByCount``1(IEnumerable<T>, SecurityLookupMessage)
- set
- msg
TryRemoveWrapper``1(IMessageAdapter)
Remove adapter by the specified type.
- adapter
- Adapter.
Returns: Removed adapter or .
UnGroup(IOrderBookMessage) : QuoteChangeMessage
To de-group the order book, grouped using the method Decimal).
- depth
- The grouped order book.
Returns: The de-grouped order book.
UseChannels(IMessageAdapter) : bool
To check, whether the message adapter uses channels.
- adapter
- IMessageAdapter
Returns: Check result.
ValidateBounds(MarketDataMessage) : MarketDataMessage
Validate From and To values.
- message
- Message.
Returns: Message.
ValidateCandleArg(Type, object) : bool
Validate candle arg.
- candleMessageType
- Candle message type.
- value
- Candle arg.
Returns: Check result.
ValidateChannelState(ChannelStates, ChannelStates) : bool
Validate state change.
- currState
- Current state.
- newState
- New state.
Verify(IOrderBookMessage) : bool
To determine whether the order book is in the right state.
- book
- Order book.
Returns: , if the order book contains correct data, otherwise .
VerifyOrderState(OrderStates?, OrderStates, long, ILogReceiver, bool) : bool
Check the possibility OrderStates change.
- currState
- Current order's state.
- newState
- New state.
- transactionId
- Transaction id.
- logs
- Logs.
- throwOnInvalid
- Throw exception on invalid transition.
Returns: Check result.
Fields
AllSecurityId : string
"All securities" id.
AnonymousPortfolioName : string
Anonymous account.
AnyDepths : IEnumerable<int>
Special set mean any depth for SupportedOrderBookDepths option.
DefaultFileSystem : IFileSystem
Default IFileSystem.
LookupAllCriteriaMessage : SecurityLookupMessage
Lookup all securities predefined criteria.
NewsStockSharpSource : string
StockSharp news source.
SimulatorPortfolioName : string
Simulator.