Beispiel #1
0
        public async Task <PortfolioValueResponse> GetValue(Guid stockId, DateRange dateRange, ValueFrequency frequency)
        {
            var url = "/api/portfolio/" + _MessageHandler.Portfolio + "/holdings/" + stockId + "/value?fromdate=" + dateRange.FromDate.ToIsoDateString() + "&todate=" + dateRange.ToDate.ToIsoDateString() + "&frequency=" + frequency.ToString();

            return(await _MessageHandler.GetAsync <PortfolioValueResponse>(url));
        }
Beispiel #2
0
        public async Task <PortfolioValueResponse> GetValue(DateRange dateRange, ValueFrequency frequency)
        {
            var url = "portfolio/" + _MessageHandler.Portfolio + "/value?fromdate=" + dateRange.FromDate.ToIsoDateString() + "&todate=" + dateRange.ToDate.ToIsoDateString() + "&frequency=" + frequency.ToString().ToLower();

            return(await _MessageHandler.GetAsync <PortfolioValueResponse>(url));
        }