Ejemplo n.º 1
0
 public async Task <GlobalQuoteResult> GetGlobalQuote(string function, string symbol)
 {
     return(await GetAsync <GlobalQuoteResult>(AlphaVantageQueryStringService.AppendQueryString(string.Empty,
                                                                                                new Dictionary <string, object>
     {
         { "function", function },
         { "symbol", symbol }
     })));
 }
Ejemplo n.º 2
0
        public async Task <BestMatches> SearchSymbolAsync(string function, string keywords)
        {
            if (keywords.ToLower().Contains("BVMF3"))
            {
                keywords = "B3SA3.SA";
            }

            return(await GetAsync <BestMatches>(AlphaVantageQueryStringService.AppendQueryString(string.Empty,
                                                                                                 new Dictionary <string, object>
            {
                { "function", function },
                { "keywords", keywords }
            })));
        }