ISnapshotStorage

StockSharp.Algo.Storages

即时价格存储访问的界面.

属性

Dates
public IEnumerable<DateTime> Dates { get; }
value = iSnapshotStorage.Dates

以获得所有记录市场数据的日期。

方法

ClearAllAsync
public ValueTask ClearAllAsync(CancellationToken cancellationToken)
result = iSnapshotStorage.ClearAllAsync(cancellationToken)

Clear storage.

cancellationToken
CancellationToken

返回值: ValueTask

ClearAsync
public ValueTask ClearAsync(object key, CancellationToken cancellationToken)
result = iSnapshotStorage.ClearAsync(key, cancellationToken)

Remove snapshot for the specified key.

key
Key.
cancellationToken
CancellationToken

返回值: ValueTask

GetAllAsync
public IAsyncEnumerable<Message> GetAllAsync(DateTime? from, DateTime? to)
result = iSnapshotStorage.GetAllAsync(from, to)

Get all snapshots.

from
Start date, from which data needs to be retrieved.
to
End date, until which data needs to be retrieved.

返回值: All snapshots.

GetAsync
public ValueTask<Message> GetAsync(object key, CancellationToken cancellationToken)
result = iSnapshotStorage.GetAsync(key, cancellationToken)

Get snapshot for the specified key.

key
Key.
cancellationToken
CancellationToken

返回值: Snapshot.

UpdateAsync
public ValueTask UpdateAsync(Message message, CancellationToken cancellationToken)
result = iSnapshotStorage.UpdateAsync(message, cancellationToken)

Update snapshot.

message
Message.
cancellationToken
CancellationToken

返回值: ValueTask