RemoteStorageClient

StockSharp.Algo.Storages

The client for access to the history server.

Herda de: Disposable

Construtores

RemoteStorageClient(IMessageAdapter, int)

Initializes a new instance of the RemoteStorageClient.

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

Métodos

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

Retorna: ValueTask

DisposeManaged()

Release resources.

GetAvailableDataTypesAsync(SecurityId, StorageFormats) : IAsyncEnumerable<DataType>

Get all available data types.

securityId
Instrument identifier.
format
Format type.

Retorna: Data types.

GetAvailableSecuritiesAsync() : IAsyncEnumerable<SecurityId>

Get all available instruments as async stream.

Retorna: 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

Retorna: 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

Retorna: 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.

Retorna: 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.

Retorna: The sequence of found instruments.

SaveSecuritiesAsync(IEnumerable<SecurityMessage>, CancellationToken) : ValueTask

Save securities.

securities
Securities.
cancellationToken
CancellationToken

Retorna: 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

Retorna: ValueTask

VerifyAsync(CancellationToken) : ValueTask

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

cancellationToken
CancellationToken

Retorna: ValueTask