Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ STOCK_REQ = [
|
|
| 35 |
]
|
| 36 |
|
| 37 |
INDEX_REQ = [
|
| 38 |
-
"
|
| 39 |
"nse_future", "nse_bhav", "nse_highlow"
|
| 40 |
]
|
| 41 |
|
|
@@ -66,7 +66,7 @@ def fetch_data(mode, req_type, symbol, date_str):
|
|
| 66 |
date_str = date_str.strip()
|
| 67 |
|
| 68 |
if mode == "index":
|
| 69 |
-
if req_type == "
|
| 70 |
return build_indices_html()
|
| 71 |
elif req_type == "nse_open":
|
| 72 |
return wrap(nse_open(symbol))
|
|
|
|
| 35 |
]
|
| 36 |
|
| 37 |
INDEX_REQ = [
|
| 38 |
+
"indices", "nse_open", "nse_preopen", "nse_fno",
|
| 39 |
"nse_future", "nse_bhav", "nse_highlow"
|
| 40 |
]
|
| 41 |
|
|
|
|
| 66 |
date_str = date_str.strip()
|
| 67 |
|
| 68 |
if mode == "index":
|
| 69 |
+
if req_type == "indices":
|
| 70 |
return build_indices_html()
|
| 71 |
elif req_type == "nse_open":
|
| 72 |
return wrap(nse_open(symbol))
|