Stock Prices of a Company
import yfinance as yf #getting data from yahoo finance
from matplotlib import pyplot as plt
import json
#AAPL Apple MSTF microsoft PG procter and gamble TSLA tesla motor company
company="HPE"
msft=yf.Ticker(company)
print(json.dumps(msft.info,indent=4))
#print(msft.info)#to get informaton about the products
# time period 1d,5d,1mo,3mo,6mo,1y,2y,5y,10y,ytd,max
hist = msft.history(period="1mo") #companies financial status
print("International Securities Identification Number (ISIN) is a code that uniquely identifies a specific securities issue. ")
print(msft.isin)
plt.title("Sales")
plt.plot(hist)
plt.show()