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
Тип формата.

Возвращает: Хранилище для 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

Значение по умолчанию для TargetCompId.