skka3134

skka3134

email
telegram

Stock Analysis 1. Download Data

Using WSL

Install Python extension
image

Install dependencies

sudo apt update
sudo apt upgrade

Download Apple stock data

pip3 install yfinance
import yfinance as yf
Apple = yf.download("AAPL", start="2010-01-01", end="2011-01-01")

image

Download data in bulk

ticker = ["SPY", "AAPL", "KO"]
stocks = yf.download(ticker, start="2010-01-01", end="2011-01-01")

image

Save to local

stocks.to_csv('stocksYT.csv')
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.