INativeIdStorage

StockSharp.Algo.Storages

Almacenamiento único para identificadores nativos de instrumentos financieros.

Métodos

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

Despejado.

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

Consigue todos los identificadores de instrumentos financieros nativos.

cancellationToken
CancellationToken

Devuelve: identificadores de instrumentos financieros.

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

Retire por identificador nativo.

nativeId
Instrumento financiero del sistema comercial nativo (internal).
isPersistable
Guardar el identificador como permanente.
cancellationToken
CancellationToken

Devuelve: Resultado de la operación.

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

Retirar por identificador de instrumentos financieros.

securityId
identificador de instrumentos financieros.
isPersistable
Guardar el identificador como permanente.
cancellationToken
CancellationToken

Devuelve: Resultado de la operación.

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

Intente agregar identificador de instrumentos financieros nativos.

securityId
identificador de instrumentos financieros.
nativeId
Instrumento financiero del sistema comercial nativo (internal).
isPersistable
Guardar el identificador como permanente.
cancellationToken
CancellationToken

Devuelve: si se agregó identificador nativo.

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

Trate de obtener identificador de instrumentos financieros por identificador nativo.

nativeId
Instrumento financiero del sistema comercial nativo (internal).
cancellationToken
CancellationToken

Devuelve: identificador de instrumentos financieros.

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

Trate de obtener identificador de instrumentos financieros nativos por identificador.

securityId
identificador de instrumentos financieros.
cancellationToken
CancellationToken

Devuelve: Instrumento financiero del sistema comercial nativo (internal).

Eventos

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

El nuevo identificador de instrumentos financieros nativos añadido al almacenamiento.