RemoteStorageClient

StockSharp.Algo.Storages

The client for access to the history server.

Наследует: Disposable

Конструкторы

RemoteStorageClient(IMessageAdapter, int)

Initializes a new instance of the RemoteStorageClient.

adapter
Message adapter.
securityBatchSize
The new instruments request block size.

Методы

DeleteAsync(SecurityId, DataType, StorageFormats, DateTime, CancellationToken) : ValueTask

To remove market data on specified date from the storage.

securityId
Security ID.
dataType
Data type info.
format
Storage format.
date
Date.
cancellationToken
CancellationToken

Возвращает: ValueTask

DisposeManaged()

Release resources.

GetAvailableDataTypesAsync(SecurityId, StorageFormats) : IAsyncEnumerable<DataType>

Get all available data types.

securityId
Instrument identifier.
format
Format type.

Возвращает: Data types.

GetAvailableSecuritiesAsync() : IAsyncEnumerable<SecurityId>

Get all available instruments as async stream.

Возвращает: Available instruments.

GetDatesAsync(SecurityId, DataType, StorageFormats, CancellationToken) : ValueTask<IEnumerable<DateTime>>

To get all the dates for which market data are recorded.

securityId
Security ID.
dataType
Data type info.
format
Storage format.
cancellationToken
CancellationToken

Возвращает: Dates.

LoadStreamAsync(SecurityId, DataType, StorageFormats, DateTime, CancellationToken) : ValueTask<Stream>

To load data in the format of StockSharp storage.

securityId
Security ID.
dataType
Data type info.
format
Storage format.
date
Date.
cancellationToken
CancellationToken

Возвращает: Data in the format of StockSharp storage. If no data exists, Null will be returned.

LookupBoardsAsync(BoardLookupMessage) : IAsyncEnumerable<BoardMessage>

Download boards by the specified criteria.

criteria
Message board lookup for specified criteria.

Возвращает: The sequence of found boards.

LookupSecuritiesAsync(SecurityLookupMessage, ISecurityProvider) : IAsyncEnumerable<SecurityMessage>

Download securities by the specified criteria.

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

Возвращает: The sequence of found instruments.

SaveSecuritiesAsync(IEnumerable<SecurityMessage>, CancellationToken) : ValueTask

Save securities.

securities
Securities.
cancellationToken
CancellationToken

Возвращает: ValueTask

SaveStreamAsync(SecurityId, DataType, StorageFormats, DateTime, Stream, CancellationToken) : ValueTask

To save data in the format of StockSharp storage.

securityId
Security ID.
dataType
Data type info.
format
Storage format.
date
Date.
stream
cancellationToken
CancellationToken

Возвращает: ValueTask

VerifyAsync(CancellationToken) : ValueTask

Verify connection to the server. Connects and then disconnects to test connectivity.

cancellationToken
CancellationToken

Возвращает: ValueTask