RemoteMarketDataDrive
StockSharp.Algo.Storages
远程存储通过RemoteStorageClient操作的市场数据.
继承自: BaseMarketDataDrive
构造函数
RemoteMarketDataDrive
public RemoteMarketDataDrive()
remoteMarketDataDrive = RemoteMarketDataDrive()
初始化了 & ##RemoteMarketDataDrive+#的新实例.
RemoteMarketDataDrive
public RemoteMarketDataDrive(EndPoint address)
remoteMarketDataDrive = RemoteMarketDataDrive(address)
初始化了 & ##RemoteMarketDataDrive+#的新实例.
- address
- 服务器地址 。
RemoteMarketDataDrive
public RemoteMarketDataDrive(EndPoint address, IMessageAdapter adapter)
remoteMarketDataDrive = RemoteMarketDataDrive(address, adapter)
初始化了 & ##RemoteMarketDataDrive+#的新实例.
- address
- 服务器地址 。
- adapter
- 消息适应器.
属性
Address
public EndPoint Address { get; set; }
value = remoteMarketDataDrive.Address
remoteMarketDataDrive.Address = value
服务器地址 。
Credentials
public ServerCredentials Credentials { get; }
value = remoteMarketDataDrive.Credentials
远程存储访问的登录和密码信息.
Logs
public ILogSource Logs { get; set; }
value = remoteMarketDataDrive.Logs
remoteMarketDataDrive.Logs = value
日志 记录
Path
public override string Path { get; set; }
value = remoteMarketDataDrive.Path
remoteMarketDataDrive.Path = value
市场数据路径.
SecurityBatchSize
public int SecurityBatchSize { get; set; }
value = remoteMarketDataDrive.SecurityBatchSize
remoteMarketDataDrive.SecurityBatchSize = value
新仪器请求块大小。 默认不超过1000个元素 。
TargetCompId
public string TargetCompId { get; set; }
value = remoteMarketDataDrive.TargetCompId
remoteMarketDataDrive.TargetCompId = value
目标身份
Timeout
public TimeSpan Timeout { get; set; }
value = remoteMarketDataDrive.Timeout
remoteMarketDataDrive.Timeout = value
超时
方法
DisposeManaged
protected override void DisposeManaged()
remoteMarketDataDrive.DisposeManaged()
释放资源。
GetAvailableDataTypesAsync
public override IAsyncEnumerable<DataType> GetAvailableDataTypesAsync(SecurityId securityId, StorageFormats format)
result = remoteMarketDataDrive.GetAvailableDataTypesAsync(securityId, format)
获取所有可用的数据类型 。
- securityId
- 仪器识别符.
- format
- 格式类型。
返回值: 数据类型.
GetAvailableSecuritiesAsync
public override IAsyncEnumerable<SecurityId> GetAvailableSecuritiesAsync()
result = remoteMarketDataDrive.GetAvailableSecuritiesAsync()
取出一切可用乐器.
返回值: 现有仪器。
GetStorageDrive
public override IMarketDataStorageDrive GetStorageDrive(SecurityId securityId, DataType dataType, StorageFormats format)
result = remoteMarketDataDrive.GetStorageDrive(securityId, dataType, format)
来得到IMarketDataStorage的存储.
- securityId
- 金融工具标识。
- dataType
- 数据类型信息.
- format
- 格式类型。
返回值: Storage for IMarketDataStorage.
Load
public override void Load(SettingsStorage storage)
remoteMarketDataDrive.Load(storage)
装入设置 。
- storage
- 设置存储 。
LookupSecuritiesAsync
public override IAsyncEnumerable<SecurityMessage> LookupSecuritiesAsync(SecurityLookupMessage criteria, ISecurityProvider securityProvider)
result = remoteMarketDataDrive.LookupSecuritiesAsync(criteria, securityProvider)
以规定标准下载金融工具.
- criteria
- 信件金融工具查找指定标准 。
- securityProvider
- 提供各种文书的信息。
返回值: 所出出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出所出
Save
public override void Save(SettingsStorage storage)
remoteMarketDataDrive.Save(storage)
保存设置 。
- storage
- 设置存储 。
VerifyAsync
public override ValueTask VerifyAsync(CancellationToken cancellationToken)
result = remoteMarketDataDrive.VerifyAsync(cancellationToken)
校验设置 。
- cancellationToken
- CancellationToken
返回值: ValueTask
字段
DefaultAddress
public static readonly EndPoint DefaultAddress
value = RemoteMarketDataDrive.DefaultAddress
地址的默认值 。
DefaultTargetCompId
public static readonly string DefaultTargetCompId
value = RemoteMarketDataDrive.DefaultTargetCompId
Default value for TargetCompId.