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;
 }
示例#2
0
        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 };
        }
示例#3
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="adapter"></param>
 public QLHistoryProvider(QLAdapter adapter)
 {
     this.adapter             = adapter;
     adapter.MessageReceived += AdapterOnMessageReceived;
 }
示例#4
0
 public QLFeed(QLAdapter adapter)
 {
     this.adapter = adapter;
 }
示例#5
0
 public QLRouter(QLAdapter adapter)
 {
     this.adapter = adapter;
 }