Esempio n. 1
0
 public IQLevel1Client(int bufferSize)
     : base(IQSocket.GetEndPoint(PortType.Level1), bufferSize)
 {
     _watchList = new List <IQLevel1WatchItem>();
     _key       = new Dictionary <string, int>();
     _newsOn    = false;
 }
Esempio n. 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;
 }
Esempio n. 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");
 }
Esempio n. 4
0
 // Command Requests
 public void Connect()
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
 }
Esempio n. 5
0
 public IQAdminSocketClient(int bufferSize) : base(IQSocket.GetEndPoint(PortType.Admin), bufferSize)
 {
     _status = new Status();
 }
Esempio n. 6
0
 public IQLevel2Client(int bufferSize)
     : base(IQSocket.GetEndPoint(PortType.Level2), bufferSize)
 {
 }
Esempio n. 7
0
 public IQLookupTableClient(int bufferSize) : base(IQSocket.GetEndPoint(PortType.Lookup), bufferSize)
 {
     _que = new ConcurrentQueue <LookupType>();
 }
Esempio n. 8
0
 public void Connect()
 {
     ConnectToSocketAndBeginReceive(IQSocket.GetSocket());
     Send("S,CONNECT\r\n");
 }