Table of Contents

Class CsvEntityRegistry

Namespace
StockSharp.Algo.Storages.Csv
Assembly
StockSharp.Algo.dll

The CSV storage of trading objects.

public class CsvEntityRegistry : IEntityRegistry
Inheritance
CsvEntityRegistry
Implements
Inherited Members
Extension Methods

Constructors

CsvEntityRegistry(string)

Initializes a new instance of the CsvEntityRegistry.

public CsvEntityRegistry(string path)

Parameters

path string

The path to data directory.

Properties

DelayAction

The time delayed action.

public virtual DelayAction DelayAction { get; set; }

Property Value

DelayAction

Encoding

Encoding.

public Encoding Encoding { get; set; }

Property Value

Encoding

ExchangeBoards

The list of stock boards.

public IStorageEntityList<ExchangeBoard> ExchangeBoards { get; }

Property Value

IStorageEntityList<ExchangeBoard>

Exchanges

List of exchanges.

public IStorageEntityList<Exchange> Exchanges { get; }

Property Value

IStorageEntityList<Exchange>

Path

The path to data directory.

public string Path { get; set; }

Property Value

string

Portfolios

The list of portfolios.

public IStorageEntityList<Portfolio> Portfolios { get; }

Property Value

IStorageEntityList<Portfolio>

PositionStorage

Position storage.

public IPositionStorage PositionStorage { get; }

Property Value

IPositionStorage

Positions

The list of positions.

public IStoragePositionList Positions { get; }

Property Value

IStoragePositionList

Securities

The list of instruments.

public IStorageSecurityList Securities { get; }

Property Value

IStorageSecurityList

Storage

[Obsolete("This property exists only for backward compatibility.")]
public object Storage { get; }

Property Value

object

Subscriptions

The list of subscriptions.

public IStorageEntityList<MarketDataMessage> Subscriptions { get; }

Property Value

IStorageEntityList<MarketDataMessage>

Methods

Add<TKey, TEntity>(CsvEntityList<TKey, TEntity>)

Add list of trade objects.

public void Add<TKey, TEntity>(CsvEntityList<TKey, TEntity> list) where TEntity : class

Parameters

list CsvEntityList<TKey, TEntity>

List of trade objects.

Type Parameters

TKey

Key type.

TEntity

Entity type.

Init()

Initialize the storage.

public IDictionary<object, Exception> Init()

Returns

IDictionary<object, Exception>

Possible errors with storage names. Empty dictionary means initialization without any issues.