mirror of
https://github.com/wassname/pandas-ta.git
synced 2026-08-18 12:20:24 +08:00
BUG #386 yf df unboundlocalerror
This commit is contained in:
@@ -113,7 +113,7 @@ $ pip install pandas_ta
|
||||
|
||||
Latest Version
|
||||
--------------
|
||||
Best choice! Version: *0.3.29b*
|
||||
Best choice! Version: *0.3.30b*
|
||||
* Includes all fixes and updates between **pypi** and what is covered in this README.
|
||||
```sh
|
||||
$ pip install -U git+https://github.com/twopirllc/pandas-ta
|
||||
|
||||
@@ -88,6 +88,7 @@ def yf(ticker: str, **kwargs):
|
||||
# Ticker Info & Chart History
|
||||
yfd = yfra.Ticker(ticker)
|
||||
|
||||
df = DataFrame()
|
||||
try:
|
||||
df = yfd.history(period=period, interval=interval, proxy=proxy, **kwargs)
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user