Example #1
0
 public IQLevel1Client(int bufferSize)
     : base(IQSocket.GetEndPoint(PortType.Level1), bufferSize)
 {
     _watchList = new List <IQLevel1WatchItem>();
     _key       = new Dictionary <string, int>();
     _newsOn    = false;
 }
Example #2
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;
 }
Example #3
0
 public void Connect(int retries = 10, int wait = 1000, int flushSeconds = 2)
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
     Send("S,CONNECT\r\n");
     for (int i = 0; i < retries; i++)
     {
         if (_status.connected)
         {
             return;
         }
         Thread.Sleep(wait);
     }
     throw new Exception("Timeout: No Connect message received from IQFeed");
 }
Example #4
0
 // Command Requests
 public void Connect()
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
 }
Example #5
0
 public IQAdminSocketClient(int bufferSize) : base(IQSocket.GetEndPoint(PortType.Admin), bufferSize)
 {
     _status = new Status();
 }
Example #6
0
 public IQLevel2Client(int bufferSize)
     : base(IQSocket.GetEndPoint(PortType.Level2), bufferSize)
 {
 }
Example #7
0
 public IQLookupTableClient(int bufferSize) : base(IQSocket.GetEndPoint(PortType.Lookup), bufferSize)
 {
     _que = new ConcurrentQueue <LookupType>();
 }
Example #8
0
 public void Connect()
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
     Send("S,CONNECT\r\n");
 }