INativeIdStorage

StockSharp.Algo.Storages

Einmalige Speicherung für native Finanzinstrument-Kennungen.

Methoden

ClearAsync
public ValueTask ClearAsync(CancellationToken cancellationToken)
result = iNativeIdStorage.ClearAsync(cancellationToken)

Deutliche Lagerung.

cancellationToken
CancellationToken
GetAsync
public ValueTask<ValueTuple<SecurityId, object>[]> GetAsync(CancellationToken cancellationToken)
result = iNativeIdStorage.GetAsync(cancellationToken)

Holen Sie sich alle nativen Finanzinstrument-Identifikatoren.

cancellationToken
CancellationToken

Rückgabe: Finanzinstrumentkennungen.

RemoveByNativeIdAsync
public ValueTask<bool> RemoveByNativeIdAsync(object nativeId, bool isPersistable, CancellationToken cancellationToken)
result = iNativeIdStorage.RemoveByNativeIdAsync(nativeId, isPersistable, cancellationToken)

Entfernen durch native Identifier.

nativeId
Kennung des Finanzinstruments des nativen (internen) Handelssystems.
isPersistable
Speichern Sie den Identifier als permanent.
cancellationToken
CancellationToken

Rückgabe: Betriebsergebnis.

RemoveBySecurityIdAsync
public ValueTask<bool> RemoveBySecurityIdAsync(SecurityId securityId, bool isPersistable, CancellationToken cancellationToken)
result = iNativeIdStorage.RemoveBySecurityIdAsync(securityId, isPersistable, cancellationToken)

Von der Finanzinstrumentkennung entfernen.

securityId
Finanzinstrumentkennung.
isPersistable
Speichern Sie den Identifier als permanent.
cancellationToken
CancellationToken

Rückgabe: Betriebsergebnis.

TryAddAsync
public ValueTask<bool> TryAddAsync(SecurityId securityId, object nativeId, bool isPersistable, CancellationToken cancellationToken)
result = iNativeIdStorage.TryAddAsync(securityId, nativeId, isPersistable, cancellationToken)

Versuchen Sie, eine native Finanzinstrument-Kennung hinzuzufügen.

securityId
Finanzinstrumentkennung.
nativeId
Kennung des Finanzinstruments des nativen (internen) Handelssystems.
isPersistable
Speichern Sie den Identifier als permanent.
cancellationToken
CancellationToken

Rückgabe: wenn nativer Identifikator hinzugefügt wurde.

TryGetByNativeIdAsync
public ValueTask<SecurityId?> TryGetByNativeIdAsync(object nativeId, CancellationToken cancellationToken)
result = iNativeIdStorage.TryGetByNativeIdAsync(nativeId, cancellationToken)

Versuchen Sie, die Finanzinstrument-Kennung nach nativer Kennung zu erhalten.

nativeId
Kennung des Finanzinstruments des nativen (internen) Handelssystems.
cancellationToken
CancellationToken

Rückgabe: Finanzinstrumentkennung.

TryGetBySecurityIdAsync
public ValueTask<object> TryGetBySecurityIdAsync(SecurityId securityId, CancellationToken cancellationToken)
result = iNativeIdStorage.TryGetBySecurityIdAsync(securityId, cancellationToken)

Versuchen Sie, eine native Finanzinstrument-Kennung nach Kennung zu erhalten.

securityId
Finanzinstrumentkennung.
cancellationToken
CancellationToken

Rückgabe: Kennung des Finanzinstruments des nativen (internen) Handelssystems.

Ereignisse

Added
public event Func<SecurityId, object, CancellationToken, ValueTask> Added
iNativeIdStorage.Added += handler

Die neue native Finanzinstrumentkennung, die der Speicherung hinzugefügt wurde.