Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ import pandas as pd
|
|
15 |
from datetime import datetime
|
16 |
|
17 |
# Function to import stock data using Alpha Vantage
|
18 |
-
def import_stock_data_alphavantage(tickers, api_key, start='
|
19 |
data = pd.DataFrame()
|
20 |
ts = TimeSeries(key=api_key, output_format='pandas') # Initialize TimeSeries with your API key
|
21 |
if isinstance(tickers, str):
|
|
|
15 |
from datetime import datetime
|
16 |
|
17 |
# Function to import stock data using Alpha Vantage
|
18 |
+
def import_stock_data_alphavantage(tickers, api_key, start='2023-1-01', end=datetime.today().strftime('%Y-%m-%d')):
|
19 |
data = pd.DataFrame()
|
20 |
ts = TimeSeries(key=api_key, output_format='pandas') # Initialize TimeSeries with your API key
|
21 |
if isinstance(tickers, str):
|