diff --git a/.gitignore b/.gitignore index 6a41db9..4bff491 100644 --- a/.gitignore +++ b/.gitignore @@ -77,4 +77,7 @@ ENV/ # Rope project settings .ropeproject *.npy -*.pkl \ No newline at end of file +*.pkl + +# Pycharm +.idea \ No newline at end of file diff --git a/opstrat/helpers.py b/opstrat/helpers.py index 2e3e305..8e0a17b 100644 --- a/opstrat/helpers.py +++ b/opstrat/helpers.py @@ -28,6 +28,6 @@ def check_ticker(ticker): Check ticker """ try: - return yf.Ticker('msft').info['currentPrice'] + return yf.Ticker(ticker).info['currentPrice'] except KeyError: raise ValueError('Ticker not recognized') \ No newline at end of file