Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def get_stock_signal(symbol: str, interval: str) -> str:
|
|
15 |
Retrieves intraday stock data for the given symbol using the Alpha Vantage API, computes exponential moving averages (EMA),
|
16 |
and generates a trading signal based on an EMA crossover strategy.
|
17 |
Args:
|
18 |
-
symbol
|
19 |
-
interval
|
20 |
"""
|
21 |
API_KEY = 'RG9XKRIYBL2EV3V3'
|
22 |
|
|
|
15 |
Retrieves intraday stock data for the given symbol using the Alpha Vantage API, computes exponential moving averages (EMA),
|
16 |
and generates a trading signal based on an EMA crossover strategy.
|
17 |
Args:
|
18 |
+
symbol: A string representing the stock symbol to analyze (e.g., "AAPL", "GOOG", "MSFT", "TSLA").
|
19 |
+
interval: A string representing the time interval between data points (e.g., "1min", "5min", "15min", "60min").
|
20 |
"""
|
21 |
API_KEY = 'RG9XKRIYBL2EV3V3'
|
22 |
|