Level1DepthBuilderManagerState
StockSharp.Algo
Standard-Implementierung von ILevel1DepthBuilderManagerState.
Implementiert: ILevel1DepthBuilderManagerState
Eigenschaften
HasAnySubscriptions
public bool HasAnySubscriptions { get; }
value = level1DepthBuilderManagerState.HasAnySubscriptions
Ob es irgendwelche verfolgten Abonnements gibt.
Methoden
AddSubscription
public void AddSubscription(long transactionId, SecurityId securityId)
level1DepthBuilderManagerState.AddSubscription(transactionId, securityId)
Fügen Sie ein neues Level1-to-Dep-Abonnement hinzu.
Clear
public void Clear()
level1DepthBuilderManagerState.Clear()
Löscht alle Adapterzustände und setzt den aktuellen Zustand auf Disconnected zurück.
ContainsSubscription
public bool ContainsSubscription(long subscriptionId)
result = level1DepthBuilderManagerState.ContainsSubscription(subscriptionId)
Prüfen Sie, ob ein Abonnement existiert.
OnSubscriptionOnline
public void OnSubscriptionOnline(long transactionId)
level1DepthBuilderManagerState.OnSubscriptionOnline(transactionId)
Markieren Sie das Abonnement als Online.
RemoveSubscription
public void RemoveSubscription(long id)
level1DepthBuilderManagerState.RemoveSubscription(id)
Abo entfernen.
TryBuildDepth
public QuoteChangeMessage TryBuildDepth(long subscriptionId, Level1ChangeMessage l1Msg, Int64[] subscriptionIds)
result = level1DepthBuilderManagerState.TryBuildDepth(subscriptionId, l1Msg, subscriptionIds)
Verarbeiten Sie eine Level1-Änderungsnachricht für ein Abonnement und erstellen Sie ein Auftragsbuch.
- subscriptionId
- Subscription ID.
- l1Msg
- Level1 Änderungsmeldung.
- subscriptionIds
- Alle Abonnement-IDs, die diese Daten erhalten sollen.
Rückgabe: Bauweises Auftragsbuch oder null.