Update app.py
Browse files
app.py
CHANGED
@@ -95,7 +95,7 @@ def calculate_indicators(data):
|
|
95 |
def main():
|
96 |
st.title("AI Stock Trend Predictor")
|
97 |
|
98 |
-
|
99 |
url = f'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol2={symbol2}&interval=5min&apikey={api_key}'
|
100 |
response = requests.get(url)
|
101 |
alpha_vantage_data = response.json()
|
|
|
95 |
def main():
|
96 |
st.title("AI Stock Trend Predictor")
|
97 |
|
98 |
+
def fetch_alpha_vantage_data(api_key, symbol2):
|
99 |
url = f'https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol2={symbol2}&interval=5min&apikey={api_key}'
|
100 |
response = requests.get(url)
|
101 |
alpha_vantage_data = response.json()
|