Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def get_API_data(currency, interval_timedelta, interval, start_datetime, end_dat
|
|
116 |
}
|
117 |
r = requests.get(url=url, headers=headers, params=query_param)
|
118 |
if r.status_code != 200:
|
119 |
-
st.error("
|
120 |
return []
|
121 |
data += r.json()
|
122 |
return data
|
@@ -172,8 +172,8 @@ def main():
|
|
172 |
|
173 |
currency = st.text_input("Currency", "BTC")
|
174 |
interval = st.selectbox("Interval", ["1h", "4h", "1d", "1w"])
|
175 |
-
startdate = st.text_input("Start Date (MM/DD/YYYY)", "01/01/
|
176 |
-
enddate = st.text_input("End Date (MM/DD/YYYY)", "12/31/
|
177 |
threshold_channel_len = st.number_input("Threshold Channel Length", min_value=1, max_value=1000, value=10)
|
178 |
|
179 |
if st.button("Generate Plot"):
|
|
|
116 |
}
|
117 |
r = requests.get(url=url, headers=headers, params=query_param)
|
118 |
if r.status_code != 200:
|
119 |
+
st.error("Very Large Duration Selected. Please reduce Duration or increase Interval")
|
120 |
return []
|
121 |
data += r.json()
|
122 |
return data
|
|
|
172 |
|
173 |
currency = st.text_input("Currency", "BTC")
|
174 |
interval = st.selectbox("Interval", ["1h", "4h", "1d", "1w"])
|
175 |
+
startdate = st.text_input("Start Date (MM/DD/YYYY)", "01/01/2023")
|
176 |
+
enddate = st.text_input("End Date (MM/DD/YYYY)", "12/31/2023")
|
177 |
threshold_channel_len = st.number_input("Threshold Channel Length", min_value=1, max_value=1000, value=10)
|
178 |
|
179 |
if st.button("Generate Plot"):
|