RemoteMarketDataDrive
Удаленное хранение рыночных данных, работающее через RemoteStorageClient.
Наследует: BaseMarketDataDrive
Конструкторы
public RemoteMarketDataDrive()
remoteMarketDataDrive = RemoteMarketDataDrive()
Инициализирует новый экземпляр RemoteMarketDataDrive.
public RemoteMarketDataDrive(EndPoint address)
remoteMarketDataDrive = RemoteMarketDataDrive(address)
Инициализирует новый экземпляр RemoteMarketDataDrive.
- address
- Адрес сервера.
public RemoteMarketDataDrive(EndPoint address, IMessageAdapter adapter)
remoteMarketDataDrive = RemoteMarketDataDrive(address, adapter)
Инициализирует новый экземпляр RemoteMarketDataDrive.
- address
- Адрес сервера.
- adapter
- Адаптер сообщений.
Свойства
public EndPoint Address { get; set; }
value = remoteMarketDataDrive.Address
remoteMarketDataDrive.Address = value
Адрес сервера.
public ServerCredentials Credentials { get; }
value = remoteMarketDataDrive.Credentials
Информация о логине и пароле для доступа к удаленному хранению.
public ILogSource Logs { get; set; }
value = remoteMarketDataDrive.Logs
remoteMarketDataDrive.Logs = value
Журналы.
public override string Path { get; set; }
value = remoteMarketDataDrive.Path
remoteMarketDataDrive.Path = value
Путь к рыночным данным.
public int SecurityBatchSize { get; set; }
value = remoteMarketDataDrive.SecurityBatchSize
remoteMarketDataDrive.SecurityBatchSize = value
Новые инструменты запрашивают размер блока. По умолчанию он не превышает 1000 элементов.
public string TargetCompId { get; set; }
value = remoteMarketDataDrive.TargetCompId
remoteMarketDataDrive.TargetCompId = value
Идентификатор цели.
public TimeSpan Timeout { get; set; }
value = remoteMarketDataDrive.Timeout
remoteMarketDataDrive.Timeout = value
тайм-аут
Методы
protected override void DisposeManaged()
remoteMarketDataDrive.DisposeManaged()
Освободите ресурсы.
public override IAsyncEnumerable<DataType> GetAvailableDataTypesAsync(SecurityId securityId, StorageFormats format)
result = remoteMarketDataDrive.GetAvailableDataTypesAsync(securityId, format)
Получите все доступные типы данных.
- securityId
- Идентификатор инструмента.
- format
- Тип формата.
Возвращает: Типы данных.
public override IAsyncEnumerable<SecurityId> GetAvailableSecuritiesAsync()
result = remoteMarketDataDrive.GetAvailableSecuritiesAsync()
Получите все доступные инструменты.
Возвращает: Доступные инструменты.
public override IMarketDataStorageDrive GetStorageDrive(SecurityId securityId, DataType dataType, StorageFormats format)
result = remoteMarketDataDrive.GetStorageDrive(securityId, dataType, format)
Чтобы получить хранилище для IMarketDataStorage.
- securityId
- идентификатор финансового инструмента.
- dataType
- Информация о типе данных.
- format
- Тип формата.
Возвращает: Хранилище для IMarketDataStorage.
public override void Load(SettingsStorage storage)
remoteMarketDataDrive.Load(storage)
Загрузить настройки.
- storage
- Хранилище настроек.
public override IAsyncEnumerable<SecurityMessage> LookupSecuritiesAsync(SecurityLookupMessage criteria, ISecurityProvider securityProvider)
result = remoteMarketDataDrive.LookupSecuritiesAsync(criteria, securityProvider)
Скачать финансовые инструменты по указанным критериям.
- criteria
- Поиск финансовых инструментов сообщений по заданным критериям.
- securityProvider
- Поставщик информации об инструментах.
Возвращает: Последовательность найденных инструментов.
public override void Save(SettingsStorage storage)
remoteMarketDataDrive.Save(storage)
Сохраните настройки.
- storage
- Хранилище настроек.
public override ValueTask VerifyAsync(CancellationToken cancellationToken)
result = remoteMarketDataDrive.VerifyAsync(cancellationToken)
Проверьте настройки.
- cancellationToken
- CancellationToken
Возвращает: ValueTask
Поля
public static readonly EndPoint DefaultAddress
value = RemoteMarketDataDrive.DefaultAddress
Значение по умолчанию для адреса.
public static readonly string DefaultTargetCompId
value = RemoteMarketDataDrive.DefaultTargetCompId
Значение по умолчанию для TargetCompId.