Table of Contents

Class RemoteMarketDataDrive

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

Remote storage of market data working via RemoteStorageClient.

public class RemoteMarketDataDrive : BaseMarketDataDrive, IMarketDataDrive, IPersistable, IDisposable
Inheritance
RemoteMarketDataDrive
Implements
IPersistable
Inherited Members
Extension Methods

Constructors

RemoteMarketDataDrive()

Initializes a new instance of the RemoteMarketDataDrive.

public RemoteMarketDataDrive()

RemoteMarketDataDrive(EndPoint)

Initializes a new instance of the RemoteMarketDataDrive.

public RemoteMarketDataDrive(EndPoint address)

Parameters

address EndPoint

Server address.

RemoteMarketDataDrive(EndPoint, IMessageAdapter)

Initializes a new instance of the RemoteMarketDataDrive.

public RemoteMarketDataDrive(EndPoint address, IMessageAdapter adapter)

Parameters

address EndPoint

Server address.

adapter IMessageAdapter

Message adapter.

Fields

DefaultAddress

Default value for Address.

public static readonly EndPoint DefaultAddress

Field Value

EndPoint

DefaultTargetCompId

Default value for TargetCompId.

public static readonly string DefaultTargetCompId

Field Value

string

Properties

Address

Server address.

public EndPoint Address { get; set; }

Property Value

EndPoint

AvailableSecurities

Get all available instruments.

public override IEnumerable<SecurityId> AvailableSecurities { get; }

Property Value

IEnumerable<SecurityId>

Cache

Cache.

public RemoteStorageCache Cache { get; set; }

Property Value

RemoteStorageCache

Credentials

Information about the login and password for access to remote storage.

public ServerCredentials Credentials { get; }

Property Value

ServerCredentials

Path

Path to market data.

public override string Path { get; set; }

Property Value

string

SecurityBatchSize

The new instruments request block size. By default it does not exceed 1000 elements.

public int SecurityBatchSize { get; set; }

Property Value

int

TargetCompId

Target ID.

public string TargetCompId { get; set; }

Property Value

string

Timeout

Timeout

public TimeSpan Timeout { get; set; }

Property Value

TimeSpan

Methods

DisposeManaged()

protected override void DisposeManaged()

GetAvailableDataTypes(SecurityId, StorageFormats)

Get all available data types.

public override IEnumerable<DataType> GetAvailableDataTypes(SecurityId securityId, StorageFormats format)

Parameters

securityId SecurityId

Instrument identifier.

format StorageFormats

Format type.

Returns

IEnumerable<DataType>

Data types.

GetStorageDrive(SecurityId, DataType, StorageFormats)

To get the storage for IMarketDataStorage.

public override IMarketDataStorageDrive GetStorageDrive(SecurityId securityId, DataType dataType, StorageFormats format)

Parameters

securityId SecurityId

Security ID.

dataType DataType

Data type info.

format StorageFormats

Format type.

Returns

IMarketDataStorageDrive

Storage for IMarketDataStorage.

Load(SettingsStorage)

Load settings.

public override void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

LookupSecurities(SecurityLookupMessage, ISecurityProvider, Action<SecurityMessage>, Func<bool>, Action<int, int>)

Download securities by the specified criteria.

public override void LookupSecurities(SecurityLookupMessage criteria, ISecurityProvider securityProvider, Action<SecurityMessage> newSecurity, Func<bool> isCancelled, Action<int, int> updateProgress)

Parameters

criteria SecurityLookupMessage

Message security lookup for specified criteria.

securityProvider ISecurityProvider

The provider of information about instruments.

newSecurity Action<SecurityMessage>

The handler through which a new instrument will be passed.

isCancelled Func<bool>

The handler which returns an attribute of search cancel.

updateProgress Action<int, int>

The handler through which a progress change will be passed.

Save(SettingsStorage)

Save settings.

public override void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

Verify()

Verify settings.

public override void Verify()