public IQFeedResponse ParseTickMarketData(string[] input) { if (input == null) { throw new ArgumentNullException("input"); } if (input.Length != 11) { throw new ArgumentException("input.Length"); } IQFeedResponse response = new IQFeedResponse(); //response.RequestId = input[0]; response.Last = input[1]; response.LastSize = input[2]; response.TotalVolume = input[3]; response.Bid = input[4]; response.Ask = input[5]; response.TickId = input[6]; response.BidSize = input[7]; response.AskSize = input[8]; response.TradeType = input[9]; return(response); }
public IQFeedResponse ParseMarketData(string[] input) { if (input == null) { throw new ArgumentNullException("input"); } if (input.Length != 8) { throw new ArgumentException("input.Length"); } IQFeedResponse response = new IQFeedResponse(); //response.RequestId = input[0]; response.High = input[1]; response.Low = input[2]; response.Open = input[3]; response.Close = input[4]; response.OpenInterest = input[5]; response.Volume = input[6]; return(response); }