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
EndPointServer address.
RemoteMarketDataDrive(EndPoint, IMessageAdapter)
Initializes a new instance of the RemoteMarketDataDrive.
public RemoteMarketDataDrive(EndPoint address, IMessageAdapter adapter)
Parameters
address
EndPointServer address.
adapter
IMessageAdapterMessage adapter.
Fields
DefaultAddress
Default value for Address.
public static readonly EndPoint DefaultAddress
Field Value
DefaultTargetCompId
Default value for TargetCompId.
public static readonly string DefaultTargetCompId
Field Value
Properties
Address
Server address.
public EndPoint Address { get; set; }
Property Value
AvailableSecurities
Get all available instruments.
public override IEnumerable<SecurityId> AvailableSecurities { get; }
Property Value
Cache
Cache.
public RemoteStorageCache Cache { get; set; }
Property Value
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
SecurityBatchSize
The new instruments request block size. By default it does not exceed 1000 elements.
public int SecurityBatchSize { get; set; }
Property Value
TargetCompId
Target ID.
public string TargetCompId { get; set; }
Property Value
Timeout
Timeout
public TimeSpan Timeout { get; set; }
Property Value
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
SecurityIdInstrument identifier.
format
StorageFormatsFormat 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
SecurityIdSecurity ID.
dataType
DataTypeData type info.
format
StorageFormatsFormat type.
Returns
- IMarketDataStorageDrive
Storage for IMarketDataStorage.
Load(SettingsStorage)
Load settings.
public override void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings 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
SecurityLookupMessageMessage security lookup for specified criteria.
securityProvider
ISecurityProviderThe 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
SettingsStorageSettings storage.
Verify()
Verify settings.
public override void Verify()