/// <summary> /// HID - Retrieves [Days] days of interval data for the specified [Symbol]. /// </summary> /// <param name="symbol"></param> /// <param name="interval"></param> /// <param name="days"></param> /// <param name="maxDatapoints"></param> /// <param name="beginFilterTime"></param> /// <param name="endFilterTime"></param> /// <param name="dataDirection"></param> /// <param name="requestId"></param> /// <param name="datapointsPerSend"></param> /// <param name="intervalType"></param> public Task <IEnumerable <IntervalMessage> > ReqHistoryIntervalDaysAsync(string symbol, int interval, int days, int?maxDatapoints = null, TimeSpan?beginFilterTime = null, TimeSpan?endFilterTime = null, DataDirection?dataDirection = null, string requestId = null, int?datapointsPerSend = null, HistoricalIntervalType?intervalType = null, LabelAtBeginning?labelAtBeginning = null) { var request = _historicalRequestFormatter.ReqHistoryIntervalDays(symbol, interval, days, maxDatapoints, beginFilterTime, endFilterTime, dataDirection, requestId, datapointsPerSend, intervalType, labelAtBeginning); return(string.IsNullOrEmpty(requestId) ? GetMessagesAsync(request, _historicalMessageHandler.GetIntervalMessages) : GetMessagesAsync(request, _historicalMessageHandler.GetIntervalMessagesWithRequestId)); }
public Task <string> ReqHistoryIntervalDaysAsync(string symbol, int interval, int days, int?maxDatapoints = null, TimeSpan?beginFilterTime = null, TimeSpan?endFilterTime = null, int?dataDirection = null, string requestId = null, int?datapointsPerSend = null, HistoricalIntervalType?intervalType = null) { var request = _historicalRequestFormatter.ReqHistoryIntervalDays(symbol, interval, days, maxDatapoints, beginFilterTime, endFilterTime, dataDirection, requestId, datapointsPerSend, intervalType); return(_rawMessageHandler.GetFilenameAsync(request)); }