INativeIdStorage
StockSharp.Algo.Storages
Single storage for security native identifiers.
Métodos
GetAsync(CancellationToken) : ValueTask<ValueTuple<SecurityId, object>[]>
Get all native security identifiers.
- cancellationToken
- CancellationToken
Retorna: Security identifiers.
RemoveByNativeIdAsync(object, bool, CancellationToken) : ValueTask<bool>
Remove by native identifier.
- nativeId
- Native (internal) trading system security id.
- isPersistable
- Save the identifier as a permanent.
- cancellationToken
- CancellationToken
Retorna: Operation result.
RemoveBySecurityIdAsync(SecurityId, bool, CancellationToken) : ValueTask<bool>
Remove by security identifier.
- securityId
- Security identifier.
- isPersistable
- Save the identifier as a permanent.
- cancellationToken
- CancellationToken
Retorna: Operation result.
TryAddAsync(SecurityId, object, bool, CancellationToken) : ValueTask<bool>
Try add native security identifier.
- securityId
- Security identifier.
- nativeId
- Native (internal) trading system security id.
- isPersistable
- Save the identifier as a permanent.
- cancellationToken
- CancellationToken
Retorna: if native identifier was added. Otherwise, .
TryGetByNativeIdAsync(object, CancellationToken) : ValueTask<SecurityId?>
Try get security identifier by native identifier.
- nativeId
- Native (internal) trading system security id.
- cancellationToken
- CancellationToken
Retorna: Security identifier.
TryGetBySecurityIdAsync(SecurityId, CancellationToken) : ValueTask<object>
Try get native security identifier by identifier.
- securityId
- Security identifier.
- cancellationToken
- CancellationToken
Retorna: Native (internal) trading system security id.
Eventos
Added : Func<SecurityId, object, CancellationToken, ValueTask>
The new native security identifier added to storage.