public Task <string> ReqHistoryWeeklyDatapointsAsync(string symbol, int maxDatapoints, int?dataDirection = null, string requestId = null, int?datapointsPerSend = null) { var request = _historicalRequestFormatter.ReqHistoryWeeklyDatapoints(symbol, maxDatapoints, dataDirection, requestId, datapointsPerSend); return(_rawMessageHandler.GetFilenameAsync(request)); }
/// <summary> /// HWX - Retrieves up to [maxDatapoints] datapoints of composite weekly datapoints 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 <DailyWeeklyMonthlyMessage> > ReqHistoryWeeklyDatapointsAsync(string symbol, int maxDatapoints, DataDirection?dataDirection = null, string requestId = null, int?datapointsPerSend = null) { var request = _historicalRequestFormatter.ReqHistoryWeeklyDatapoints(symbol, maxDatapoints, dataDirection, requestId, datapointsPerSend); return(string.IsNullOrEmpty(requestId) ? GetMessagesAsync(request, _historicalMessageHandler.GetDailyWeeklyMonthlyMessages) : GetMessagesAsync(request, _historicalMessageHandler.GetDailyWeeklyMonthlyMessagesWithRequestId)); }