Yahoo Finance¶
Getting historic data¶
The module is usually imported as follows:
In [1]: from tradingWithPython import yahooFinance as yf
Singe symbol¶
Then, to get raw yahoo finance data for a symbol use getSymbolData()
In [2]: df = yf.getSymbolData("SPY")
Got 4510 days of data
In [3]: df.head()