private Task <List <byte[]> > QueryQuoteHistoryTicksFilesInternalAsync(DateTime timestamp, string symbol, bool level2) { if (!IsConnected) { throw new Exception("Client is not connected!"); } // Create a new async context var context = new QueryQuoteHistoryTicksFilesAsyncContext(); // Create a new QH cache request var request = new QueryTicksFileRequest(0) { RequestId = Guid.NewGuid().ToString(), Timestamp = timestamp, Symbol = symbol, Level2 = level2 }; // Send request to the server _session.SendTicksFileRequest(context, request); // Return result task return(context.Tcs.Task); }
public TicksFileAsyncContext(QueryQuoteHistoryTicksFilesAsyncContext parent) { ParentContext = parent; }