예제 #1
0
        public async Task GetMonthlyTimeSeriesAdjustedTest()
        {
            _apiKeyServiceMock.Setup(q => q.GetKey()).Returns(_realKeySrvice.GetKey());
            var result = await _alphaVantageServiceReal.GetMonthlyTimeSeriesAdjustedAsync(_testSymbol);

            Assert.True(result?.Any() == true);
        }
예제 #2
0
        public async Task <IActionResult> GetMonthlyTimeSeriesAdjustedAsync(string symbol)
        {
            var result = await _alphaVantageService.GetMonthlyTimeSeriesAdjustedAsync(symbol);

            return(Ok(new
            {
                symbol,
                Data = result,
            }));
        }