MessageAdapterWrapper
Base implementation of IMessageAdapterWrapper.
Hereda de: Cloneable<IMessageAdapter>
Implementa: IMessageAdapterWrapper, IMessageAdapter, IMessageTransport, IPersistable, ILogReceiver, ILogSource, IDisposable, ICloneable<IMessageAdapter>, ICloneable
Constructores
MessageAdapterWrapper(IMessageAdapter)
Initialize MessageAdapterWrapper.
- innerAdapter
- Underlying adapter.
Propiedades
CandlesBuildFrom : IEnumerable<Level1Fields>
Possible options for candles building.
Categories : MessageAdapterCategories
Message adapter categories.
CheckTimeFrameByRequest : bool
Check possible time-frame by request.
CurrentTime : DateTime
Current UTC time.
HeartbeatInterval : TimeSpan
Server check interval for track the connection alive. The value is Zero turned off tracking.
InnerAdapter : IMessageAdapter
Underlying adapter.
IsFullCandlesOnly : bool
Translates CandleMessage as only fully filled.
IsNativeIdentifiers : bool
Identify security in messages by native identifier Native.
IsNativeIdentifiersPersistable : bool
Native identifier can be stored.
IsPositionsEmulationRequired : bool?
Adapter required emulation PositionChangeMessage.
IsSecurityNewsOnly : bool
Adapter provides news related with specified security.
IsSupportExecutionsPnL : bool
Adapter fills PnL.
IsSupportOrderBookIncrements : bool
Adapter translates incremental order books.
IsSupportSubscriptions : bool
Support any subscriptions (ticks, order books etc.).
IsSupportTransactionLog : bool
Adapter translates orders changes on reply of OrderStatusMessage.
NotSupportedResultMessages : IEnumerable<MessageTypes>
Not supported by adapter result message types.
OwnInnerAdapter : bool
Control InnerAdapter lifetime.
Parent : ILogSource
Parent.
PossibleSupportedMessages : IEnumerable<MessageTypeInfo>
Possible supported message types.
ReConnectionSettings : ReConnectionSettings
Connection tracking settings IMessageAdapter with a server.
SendInBackFurther : bool
Auto send BackMode messages to InnerAdapter.
StorageName : string
Storage name.
SupportedInMessages : IEnumerable<MessageTypes>
Supported by adapter message types.
SupportedOrderBookDepths : IEnumerable<int>
Available options for MaxDepth.
TransactionIdGenerator : IdGenerator
Transaction id generator used for internal child subscription routing. Must be kept in sync with the parent adapter's generator.
Métodos
Dispose()
Disposes of items in the pool that implement IDisposable.
GetSupportedMarketDataTypesAsync(SecurityId, DateTime?, DateTime?) : IAsyncEnumerable<DataType>
Get supported by adapter message types.
- securityId
- SecurityId
- from
- Start date for request. If , then all available messages will be returned.
- to
- End date for request. If , then all available messages will be returned.
Devuelve: Supported by adapter market data types.
InnerAdapterNewOutMessageAsync(Message, CancellationToken) : ValueTask
Process InnerAdapter output message.
- message
- The message.
- cancellationToken
- Cancellation token.
IsAllDownloadingSupported(DataType) : bool
Is for the specified all securities downloading enabled.
- dataType
- Data type info.
Devuelve: Check result.
IsSecurityRequired(DataType) : bool
Support filtering subscriptions (subscribe/unsubscribe for specified security).
- dataType
- Data type info.
Devuelve: Check result.
IsSupportCandlesPriceLevels(MarketDataMessage) : bool
Support candles PriceLevels.
- subscription
- MarketDataMessage
Devuelve: Check result.
IsSupportCandlesUpdates(MarketDataMessage) : bool
Support candles subscription and live updates.
- subscription
- MarketDataMessage
Devuelve: Check result.
LogVerbose(string, object[])
LogWarning(string, object[])
OnInnerAdapterNewOutMessageAsync(Message, CancellationToken) : ValueTask
Process InnerAdapter output message.
- message
- The message.
- cancellationToken
- Cancellation token.
OnSendInMessageAsync(Message, CancellationToken) : ValueTask
Send message.
- message
- Message.
- cancellationToken
- CancellationToken
RaiseNewOutMessageAsync(Message, CancellationToken) : ValueTask
To call the event NewOutMessageAsync.
- message
- The message.
- cancellationToken
- Cancellation token.
SendInMessageAsync(Message, CancellationToken) : ValueTask
Processes a generic message asynchronously.
- message
- The message to process.
- cancellationToken
- CancellationToken
Eventos
NewOutMessageAsync : Func<Message, CancellationToken, ValueTask>
New message event.
ParentRemoved : Action<ILogSource>