QuotingEngine

StockSharp.Algo.Strategies.Quoting

Rein funktionale Engine, die Eingangsdaten empfängt und Handlungsempfehlungen zurückgibt.

Konstruktoren

QuotingEngine
public QuotingEngine(IQuotingBehavior behavior, Security security, Portfolio portfolio, Sides quotingSide, decimal quotingVolume, decimal maxOrderVolume, TimeSpan timeOut, IMarketDataProvider mdProvider, DateTime startTime)
quotingEngine = QuotingEngine(behavior, security, portfolio, quotingSide, quotingVolume, maxOrderVolume, timeOut, mdProvider, startTime)

Initialisiert eine neue Instanz der QuotingEngine Klasse.

behavior
Das Verhalten, das die Zitatlogik definiert.
security
Finanzinstrumente zu notieren.
portfolio
Portfolio für Bestellungen.
quotingSide
Die Richtung des Zitierens (Kaufen oder Verkaufen).
quotingVolume
Angabe des Gesamtvolumens.
maxOrderVolume
Maximales Volumen einer einzelnen Bestellung.
timeOut
Die Frist für die Angabe der Fertigstellung.
mdProvider
Anbieter von Marktdaten.
startTime
Startzeit für die Timeout-Berechnung.

Methoden

GetLeftVolume
public decimal GetLeftVolume(decimal position)
result = quotingEngine.GetLeftVolume(position)

Berechnen Sie das verbleibende Volumen zum Zitat.

IsTimeOut
public bool IsTimeOut(DateTime currentTime)
result = quotingEngine.IsTimeOut(currentTime)

Überprüfen Sie, ob ein Timeout stattgefunden hat.

ProcessCancellationResult
public QuotingAction ProcessCancellationResult(bool isSuccess, QuotingInput input)
result = quotingEngine.ProcessCancellationResult(isSuccess, input)

Verarbeiten Sie das Ergebnis einer Auftragsstornierung.

isSuccess
Ob die Absage erfolgreich war.
input
Aktueller Eingangszustand.

Rückgabe: Nächste empfohlene Aktion.

ProcessOrderResult
public QuotingAction ProcessOrderResult(bool isSuccess, QuotingInput input)
result = quotingEngine.ProcessOrderResult(isSuccess, input)

Verarbeiten Sie das Ergebnis einer Auftragsregistrierung.

isSuccess
Ob die Registrierung erfolgreich war.
input
Aktueller Eingangszustand.

Rückgabe: Nächste empfohlene Aktion.

ProcessQuoting
public QuotingAction ProcessQuoting(QuotingInput input)
result = quotingEngine.ProcessQuoting(input)

Prozess-Inputdaten und empfohlene Aktion zurückgeben.

input
Input-Marktdaten und -zustand.

Rückgabe: Empfohlene Aktion.

ProcessTrade
public QuotingAction ProcessTrade(decimal tradeVolume, QuotingInput input)
result = quotingEngine.ProcessTrade(tradeVolume, input)

Verarbeiten Sie eine Handelsausführung.

tradeVolume
Umfang des ausgeführten Handels.
input
Aktueller Eingangszustand.

Rückgabe: Nächste empfohlene Aktion.