11 lines
249 B
Python
11 lines
249 B
Python
|
from yahooquery import Ticker
|
||
|
|
||
|
|
||
|
stock_symbol = 'AAPL' # Replace with your desired stock symbol
|
||
|
ticker = Ticker(stock_symbol)
|
||
|
|
||
|
summary = ticker.summary_detail
|
||
|
market_cap = summary[stock_symbol.upper()]['marketCap']
|
||
|
|
||
|
print("Market Cap:", market_cap)
|