public Task <string> ReqHistoryTickDatapointsAsync(string symbol, int maxDatapoints, int?dataDirection = null, string requestId = null, int?datapointsPerSend = null) { var request = _historicalRequestFormatter.ReqHistoryTickDatapoints(symbol, maxDatapoints, dataDirection, requestId, datapointsPerSend); return(_rawMessageHandler.GetFilenameAsync(request)); }
/// <summary> /// HTX - Retrieves up to [MaxDatapoints] number of ticks for the specified [Symbol]. /// </summary> /// <param name="symbol"></param> /// <param name="maxDatapoints"></param> /// <param name="dataDirection"></param> /// <param name="requestId"></param> /// <param name="datapointsPerSend"></param> public Task <IEnumerable <TickMessage> > ReqHistoryTickDatapointsAsync(string symbol, int maxDatapoints, DataDirection?dataDirection = null, string requestId = null, int?datapointsPerSend = null) { var request = _historicalRequestFormatter.ReqHistoryTickDatapoints(symbol, maxDatapoints, dataDirection, requestId, datapointsPerSend); return(string.IsNullOrEmpty(requestId) ? GetMessagesAsync(request, _historicalMessageHandler.GetTickMessages) : GetMessagesAsync(request, _historicalMessageHandler.GetTickMessagesWithRequestId)); }