public HistoryDataSubscription(Guid id, Instrument instrument, DateTime since, HistoryProviderSpan span, QLAdapter adapter, IHistoryDataConsumer consumer) { this.Id = id; this.Instrument = instrument; this.Span = span; this.Since = since; this.adapter = adapter; this.consumer = consumer; }
public QLConnector(QLParameters settings, IDateTimeProvider dateTimeProvider) { this.settings = settings; adapter = new QLAdapter(settings.IpAddress, settings.Port, dateTimeProvider, settings.ReceiveMarketdata, settings.InstrumentConverter); feed = new QLFeed(adapter); router = new QLRouter(adapter); historyProvider = new QLHistoryProvider(adapter); ConnectionStatusProviders = new IConnectionStatusProvider[] { this }; }
/// <summary> /// Конструктор /// </summary> /// <param name="adapter"></param> public QLHistoryProvider(QLAdapter adapter) { this.adapter = adapter; adapter.MessageReceived += AdapterOnMessageReceived; }
public QLFeed(QLAdapter adapter) { this.adapter = adapter; }
public QLRouter(QLAdapter adapter) { this.adapter = adapter; }