MarketEmulatorAdapter
StockSharp.Algo.Testing
Adapter Umhüllen IMarketEmulator um IMessageAdapter Schnittstelle bereitzustellen.
Erbt von: MessageAdapter
Konstruktoren
MarketEmulatorAdapter
public MarketEmulatorAdapter(IMarketEmulator emulator, IdGenerator transactionIdGenerator)
marketEmulatorAdapter = MarketEmulatorAdapter(emulator, transactionIdGenerator)
Initialisiert eine neue Instanz.
- emulator
- Der Marktemulator.
- transactionIdGenerator
- Transaktions-ID-Generator.
Eigenschaften
CurrentTime
public override DateTime CurrentTime { get; }
value = marketEmulatorAdapter.CurrentTime
Aktuelle UTC-Zeit.
Emulator
public IMarketEmulator Emulator { get; }
value = marketEmulatorAdapter.Emulator
Der Marktemulator.
IsAutoReplyOnTransactonalUnsubscription
public override bool IsAutoReplyOnTransactonalUnsubscription { get; }
value = marketEmulatorAdapter.IsAutoReplyOnTransactonalUnsubscription
Senden Sie Auto-Antwort für OrderStatusMessage und PortfolioLookupMessage Abmelder.
IsPositionsEmulationRequired
public override bool? IsPositionsEmulationRequired { get; }
value = marketEmulatorAdapter.IsPositionsEmulationRequired
Adapter benötigt Emulation PositionChangeMessage.
IsSupportExecutionsPnL
public override bool IsSupportExecutionsPnL { get; }
value = marketEmulatorAdapter.IsSupportExecutionsPnL
Adapter füllt PnL.
IsSupportTransactionLog
public override bool IsSupportTransactionLog { get; }
value = marketEmulatorAdapter.IsSupportTransactionLog
Adapter übersetzt Bestellungsänderungen auf Antwort von OrderStatusMessage.
Methoden
Clone
public override IMessageAdapter Clone()
result = marketEmulatorAdapter.Clone()
Erstellt eine tiefe Kopie eines DataSeries
Rückgabe: Copy.
DisposeManaged
protected override void DisposeManaged()
marketEmulatorAdapter.DisposeManaged()
Ressourcen freigeben.
OnSendInMessageAsync
protected override ValueTask OnSendInMessageAsync(Message message, CancellationToken cancellationToken)
result = marketEmulatorAdapter.OnSendInMessageAsync(message, cancellationToken)
Senden Sie eine Nachricht.
- message
- Message
- cancellationToken
- CancellationToken
Rückgabe: ValueTask