Solution
quote = yf.Ticker(symbol)
return {
"a": quote.info['shortName'],
"b": quote.info['symbol'],
"c": quote.info['currentPrice'],
"d": quote.info['profitMargins'],
"e": quote.info['volume'],
"f": quote.info['averageVolume'],
"g": quote.info['marketCap'],
}