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