CsvEntityRegistry

StockSharp.Algo.Storages.Csv

CSV-хранилище торговых объектов.

Наследует: AsyncDisposable

Реализует: IEntityRegistry, IAsyncDisposable

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

CsvEntityRegistry
public CsvEntityRegistry(string path, ChannelExecutor executor)
csvEntityRegistry = CsvEntityRegistry(path, executor)

Инициализирует новый экземпляр CsvEntityRegistry.

path
Путь к каталогу данных.
executor
Исполнитель последовательных операций синхронизации доступа к диску.
CsvEntityRegistry
public CsvEntityRegistry(IFileSystem fileSystem, string path, ChannelExecutor executor)
csvEntityRegistry = CsvEntityRegistry(fileSystem, path, executor)

Инициализирует новый экземпляр CsvEntityRegistry.

fileSystem
IFileSystem
path
Путь к каталогу данных.
executor
Исполнитель последовательных операций синхронизации доступа к диску.

Свойства

Encoding
public Encoding Encoding { get; set; }
value = csvEntityRegistry.Encoding
csvEntityRegistry.Encoding = value

Кодирование.

ExchangeBoards
public IStorageEntityList<ExchangeBoard> ExchangeBoards { get; }
value = csvEntityRegistry.ExchangeBoards

Список фондовых досок.

Exchanges
public IStorageEntityList<Exchange> Exchanges { get; }
value = csvEntityRegistry.Exchanges

Список обменов.

FileSystem
public IFileSystem FileSystem { get; }
value = csvEntityRegistry.FileSystem

Файловая система.

Path
public string Path { get; set; }
value = csvEntityRegistry.Path
csvEntityRegistry.Path = value

Путь к каталогу данных.

Portfolios
public IStorageEntityList<Portfolio> Portfolios { get; }
value = csvEntityRegistry.Portfolios

Список портфелей.

Positions
public IStoragePositionList Positions { get; }
value = csvEntityRegistry.Positions

Список позиций.

PositionStorage
public IPositionStorage PositionStorage { get; }
value = csvEntityRegistry.PositionStorage

Хранение позиций.

Securities
public IStorageSecurityList Securities { get; }
value = csvEntityRegistry.Securities

Список инструментов.

Subscriptions
public IStorageEntityList<MarketDataMessage> Subscriptions { get; }
value = csvEntityRegistry.Subscriptions

Список подписок.

Методы

Add``2
public void Add<TKey, TEntity>(CsvEntityList<TKey, TEntity> list)
csvEntityRegistry.Add(list)

Добавить список торговых объектов.

list
Список торговых объектов.
DisposeManaged
protected override ValueTask DisposeManaged()
result = csvEntityRegistry.DisposeManaged()

Освободите ресурсы.

InitAsync
public ValueTask<Dictionary<object, Exception>> InitAsync(CancellationToken cancellationToken)
result = csvEntityRegistry.InitAsync(cancellationToken)

Инициализируйте хранилище.

Возвращает: Possible errors with storage names. Empty dictionary means initialization without any issues.