BaseMarketDataDrive

StockSharp.Algo.Storages

The base implementation IMarketDataDrive.

Inherits: Disposable

Implements: IMarketDataDrive, IAsyncPersistable, IDisposable

Constructors

BaseMarketDataDrive
protected BaseMarketDataDrive()
baseMarketDataDrive = BaseMarketDataDrive()

Initialize BaseMarketDataDrive.

Properties

Path
public abstract string Path { get; set; }
value = baseMarketDataDrive.Path
baseMarketDataDrive.Path = value

Path to market data.

Methods

GetAvailableDataTypesAsync
public abstract IAsyncEnumerable<DataType> GetAvailableDataTypesAsync(SecurityId securityId, StorageFormats format)
result = baseMarketDataDrive.GetAvailableDataTypesAsync(securityId, format)

Get all available data types.

securityId
Instrument identifier.
format
Format type.

Returns: Data types.

GetAvailableSecuritiesAsync
public abstract IAsyncEnumerable<SecurityId> GetAvailableSecuritiesAsync()
result = baseMarketDataDrive.GetAvailableSecuritiesAsync()

Get all available instruments.

Returns: Available instruments.

GetStorageDrive
public abstract IMarketDataStorageDrive GetStorageDrive(SecurityId securityId, DataType dataType, StorageFormats format)
result = baseMarketDataDrive.GetStorageDrive(securityId, dataType, format)

To get the storage for IMarketDataStorage.

securityId
Security ID.
dataType
Data type info.
format
Format type.

Returns: Storage for IMarketDataStorage.

LoadAsync
public virtual Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = baseMarketDataDrive.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

LookupSecuritiesAsync
public abstract IAsyncEnumerable<SecurityMessage> LookupSecuritiesAsync(SecurityLookupMessage criteria, ISecurityProvider securityProvider)
result = baseMarketDataDrive.LookupSecuritiesAsync(criteria, securityProvider)

Download securities by the specified criteria.

criteria
Message security lookup for specified criteria.
securityProvider
The provider of information about instruments.

Returns: The sequence of found instruments.

SaveAsync
public virtual Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = baseMarketDataDrive.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

ToString
public override string ToString()
result = baseMarketDataDrive.ToString()

Returns a string representation of the tuple, with values separated by commas.

Returns: A string representing the tuple's values.

VerifyAsync
public abstract ValueTask VerifyAsync(CancellationToken cancellationToken)
result = baseMarketDataDrive.VerifyAsync(cancellationToken)

Verify settings.

cancellationToken
CancellationToken

Returns: ValueTask