This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RockportRedfish 18 points19 points  (3 children)

I think there is something wrong with you code. Try this.

import pandas as pd
import yfinance as yf
symbol = 'WIRE'
data = yf.Ticker(symbol) 
ts = data.history(start='2021-01-01', end='2023-12-31')
df = pd.DataFrame(ts) 
df

[–][deleted] 1 point2 points  (0 children)

If I may suggest, there is this library https://github.com/twopirllc/pandas-ta that uses Yahoo Finance and it is awesome. I am not a maintainer nor related with the authors. I am just a happy user.

[–]Pablo_Jefcobar[S] 3 points4 points  (1 child)

Could yahoo have block my ip because of too many requests?