Click or drag to resize

Extensions Class

Extension class.
Inheritance Hierarchy
SystemObject
  StockSharp.MessagesExtensions

Namespace:  StockSharp.Messages
Assembly:  StockSharp.Messages (in StockSharp.Messages.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static class Extensions

The Extensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddMarketDataSupport
Fill the SupportedMessages message types related to market-data.
Public methodStatic memberAddSupportedAllMarketDataTypes
Add all market data types into SupportedMarketDataTypes.
Public methodStatic memberAddSupportedMarketDataType
Add market data type into SupportedMarketDataTypes.
Public methodStatic memberAddSupportedMessage
Add the message type info SupportedMessages.
Public methodStatic memberAddTransactionalSupport
Fill the SupportedMessages message types related to transactional.
Public methodStatic memberConvert(Currency, CurrencyTypes)
To convert one currency to another.
Public methodStatic memberConvert(CurrencyTypes, CurrencyTypes)
To get the conversion rate for converting one currency to another.
Public methodStatic memberConvert(CurrencyTypes, CurrencyTypes, DateTime)
To get the conversion rate for the specified date.
Public methodStatic memberCopyExtensionInfo
Copy extended info.
Public methodStatic memberCreatePortfolioChangeMessage
Initializes a new instance of the PortfolioChangeMessage.
Public methodStatic memberCreatePositionChangeMessage
Initializes a new instance of the PositionChangeMessage.
Public methodStatic memberCreateReply
Public methodStatic memberDecodeToPeriods
Decode from string to Periods.
Public methodStatic memberDecodeToSpecialDays
Decode from string to SpecialDays.
Public methodStatic memberEncodeToString(IDictionaryDateTime, RangeTimeSpan)
Encode SpecialDays to string.
Public methodStatic memberEncodeToString(IEnumerableWorkingTimePeriod)
Encode Periods to string.
Public methodStatic memberFillDefaultCryptoFields(SecurityId)
Fill default CryptoCurrency price and volume step by 0.00000001 value.
Public methodStatic memberFillDefaultCryptoFields(SecurityMessage)
Fill default CryptoCurrency price and volume step by 0.00000001 value.
Public methodStatic memberGetBestAsk
Get best ask.
Public methodStatic memberGetBestBid
Get best bid.
Public methodStatic memberGetLastTradePrice
Get last tick trade price.
Public methodStatic memberGetPeriod
Get period for schedule.
Public methodStatic memberGetPreferredLanguage
Get preferred language.
Public methodStatic memberGetServerTime
Get message server time.
Public methodStatic memberGetSpreadMiddle(Level1ChangeMessage)
Get middle of spread.
Public methodStatic memberGetSpreadMiddle(QuoteChangeMessage)
Get middle of spread.
Public methodStatic memberGetSpreadMiddle(NullableDecimal, NullableDecimal)
Get middle of spread.
Public methodStatic memberHasOrderInfo
Determines whether the specified message contains order information.
Public methodStatic memberHasTradeInfo
Determines whether the specified message contains trade information.
Public methodStatic memberIsBestAskField
Is the specified Level1Fields is related to best ask.
Public methodStatic memberIsBestBidField
Is the specified Level1Fields is related to best bid.
Public methodStatic memberIsCandleMessage
Determines whether the specified message type is derived from CandleMessage.
Public methodStatic memberIsLastTradeField
Is the specified Level1Fields is related to last trade.
Public methodStatic memberIsMarketData
Is the specified adapter support market-data.
Public methodStatic memberIsMarketDataTypeSupported
Determines whether the specified market-data type is supported by the adapter.
Public methodStatic memberIsMessageSupported
Determines whether the specified message type is supported by the adapter.
Public methodStatic memberIsObsolete(Level1Fields)
Is the specified Level1Fields was obsolete.
Public methodStatic memberIsObsolete(PositionChangeTypes)
Is the specified PositionChangeTypes was marked by ObsoleteAttribute.
Public methodStatic memberIsOrderLogCanceled
To check, does the string contain the cancelled order.
Public methodStatic memberIsOrderLogMatched
To check, does the string contain the order matching.
Public methodStatic memberIsOrderLogRegistered
To check, does the string contain the order registration.
Public methodStatic memberIsRealTimeSubscription
Is specified message id real-time subscription.
Public methodStatic memberIsTransactional
Is the specified adapter support transactions.
Public methodStatic memberRemoveMarketDataSupport
Remove from SupportedMessages message types related to market-data.
Public methodStatic memberRemoveSupportedAllMarketDataTypes
Remove all market data types from SupportedMessages.
Public methodStatic memberRemoveSupportedMarketDataType
Remove market data type from SupportedMessages.
Public methodStatic memberRemoveSupportedMessage
Remove the message type from SupportedMessages.
Public methodStatic memberRemoveTransactionalSupport
Remove from SupportedMessages message types related to transactional.
Public methodStatic memberToErrorMessage(Exception)
Convert error info into ErrorMessage.
Public methodStatic memberToErrorMessage(String)
Convert error text message to ErrorMessage instance.
Public methodStatic memberTryGetServerTime
Get message server time.
Public methodStatic memberTryInitLocalTime
Try to initialize LocalTime by CurrentTime.
Public methodStatic memberValidateBounds
Validate From and To values.
Top
See Also