EmulationMessageAdapter
StockSharp.Algo.Testing
Emulation message adapter.
Hereda de: MessageAdapterWrapper
Implementa: IEmulationMessageAdapter, IMessageAdapter, IMessageTransport, IPersistable, ILogReceiver, ILogSource, IDisposable, ICloneable<IMessageAdapter>, ICloneable
Constructores
EmulationMessageAdapter(IMessageAdapter, IMessageChannel, bool, ISecurityProvider, IPortfolioProvider, IExchangeInfoProvider)
Initialize EmulationMessageAdapter.
- innerAdapter
- Underlying adapter.
- inChannel
- Incoming messages channel.
- isEmulationOnly
- All messages do not contains real trading.
- securityProvider
- The provider of information about instruments.
- portfolioProvider
- The portfolio to be used to register orders. If value is not given, the portfolio with default name Simulator will be created.
- exchangeInfoProvider
- Exchanges and trading boards provider.
Propiedades
Emulator : IMarketEmulator
Emulator.
InChannel : IMessageChannel
Incoming messages channel.
IsPositionsEmulationRequired : bool?
Adapter required emulation PositionChangeMessage.
IsSupportTransactionLog : bool
Adapter translates orders changes on reply of OrderStatusMessage.
Settings : MarketEmulatorSettings
Settings of exchange emulator.
SupportedInMessages : IEnumerable<MessageTypes>
Supported by adapter message types.
Métodos
Dispose()
Disposes of items in the pool that implement IDisposable.
InnerAdapterNewOutMessageAsync(Message, CancellationToken) : ValueTask
Process InnerAdapter output message.
- message
- The message.
- cancellationToken
- Cancellation token.
OnInnerAdapterNewOutMessageAsync(Message, CancellationToken) : ValueTask
Process InnerAdapter output message.
- message
- The message.
- cancellationToken
- Cancellation token.
OnSendInMessageAsync(Message, CancellationToken) : ValueTask
Send message.