BaseMarketDataDrive
StockSharp.Algo.Storages
The base implementation IMarketDataDrive.
Inherits: Disposable
Implements: IMarketDataDrive, IPersistable, 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.
Load
public virtual void Load(SettingsStorage storage)
baseMarketDataDrive.Load(storage)
Load settings.
- storage
- Settings storage.
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.
Save
public virtual void Save(SettingsStorage storage)
baseMarketDataDrive.Save(storage)
Save settings.
- storage
- Settings storage.
ToString
public override string ToString()
result = baseMarketDataDrive.ToString()
Преобразовать к строковому представлению.
Returns: Строковое представление.
VerifyAsync
public abstract ValueTask VerifyAsync(CancellationToken cancellationToken)
result = baseMarketDataDrive.VerifyAsync(cancellationToken)
Verify settings.
- cancellationToken
- CancellationToken
Returns: ValueTask