Esempio n. 1
0
 // Constructor
 public IQLookupHistorySymbolClient(int bufferSize)
     : base(IQSocket.GetEndPoint(PortType.Lookup), bufferSize)
 {
     _histDataPointsPerSend = 500;
     _timeMarketOpen        = new Time(09, 30, 00);
     _timeMarketClose       = new Time(16, 00, 00);
     _lastRequestNumber     = -1;
     _histMaxDataPoints     = 5000;
 }
Esempio n. 2
0
 public void Connect(int retries = 10, int wait = 1000, int flushSeconds = 2)
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
     Send("S,CONNECT\r\n");
     for (var i = 0; i < retries; i++)
     {
         if (_status.connected)
         {
             return;
         }
         Thread.Sleep(wait);
     }
     throw new Exception("Timeout: No Connect message received from IQFeed");
 }
Esempio n. 3
0
 public IQAdminSocketClient(int bufferSize) : base(IQSocket.GetEndPoint(PortType.Admin), bufferSize)
 {
     _status = new Status();
 }
Esempio n. 4
0
 public void Connect()
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
     Send("S,CONNECT\r\n");
 }
Esempio n. 5
0
 public IQLevel1Client(int bufferSize)
     : base(IQSocket.GetEndPoint(PortType.Level1), bufferSize)
 {
     _key     = new Dictionary <string, IQLevel1WatchItem>();
     IsNewsOn = false;
 }
Esempio n. 6
0
 public void Connect()
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
 }
Esempio n. 7
0
 public IQLookupTableClient(int bufferSize) : base(IQSocket.GetEndPoint(PortType.Lookup), bufferSize)
 {
     _que = new ConcurrentQueue <LookupType>();
 }