INativeIdStorage
StockSharp.Algo.Storages
Single storage for security native identifiers.
Methods
GetAsync(CancellationToken) : ValueTask<ValueTuple<SecurityId, object>[]>
Get all native security identifiers.
- cancellationToken
- CancellationToken
Returns: 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
Returns: Operation result.
RemoveBySecurityIdAsync(SecurityId, bool, CancellationToken) : ValueTask<bool>
Remove by security identifier.
- securityId
- Security identifier.
- isPersistable
- Save the identifier as a permanent.
- cancellationToken
- CancellationToken
Returns: 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
Returns: 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
Returns: Security identifier.
TryGetBySecurityIdAsync(SecurityId, CancellationToken) : ValueTask<object>
Try get native security identifier by identifier.
- securityId
- Security identifier.
- cancellationToken
- CancellationToken
Returns: Native (internal) trading system security id.
Events
Added : Func<SecurityId, object, CancellationToken, ValueTask>
The new native security identifier added to storage.