public async Task StockPriceAsync(string symbol, int quantity = 1) { var priceResponce = await finDataClient.GetPriceAsync(symbol); await ReplyAsync(FormatPrice(priceResponce.Symbol, priceResponce.Price, quantity)); }
private async Task <ISecurityPrice> GetPriceAsync(string symbol, SecurityType securityType) { return(securityType == SecurityType.Crypto ? await client.GetCryptoPriceAsync(symbol) : await client.GetPriceAsync(symbol)); }