How to Pull Stock Info In Python.
The quick way to start learning to code is to start coding every day. Write few lines of code at least. Start with a small programs you come across on different forums. Join some group or a forum and listen to others ideas. Tweak a bit, save it and see how you progress.
This code is useful for those who are totally new to python.
# import necessary libraries
import numpy as np
import pandas as pd
import yfinance as yf
import plotly.graph_objs as go
data = yf.download(tickers=”UBER” , period=’5d’ , interval= ‘5m’)
data
If you are using Jupyter notebook, this will pull data from yahoo finance.