Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ STOCK_REQ = [
|
|
| 25 |
|
| 26 |
INDEX_REQ = [
|
| 27 |
"indices", "nse_open", "nse_preopen", "nse_fno", "nse_fiidii",
|
| 28 |
-
"nse_events", "nse_future", "nse_bhav", "nse_highlow",
|
| 29 |
"index_history", "nse_largedeals", "nse_most_active",
|
| 30 |
"largedeals_historical", "nse_bulkdeals", "nse_blockdeals",
|
| 31 |
"index_pe_pb_div", "index_total_returns"
|
|
@@ -80,7 +80,9 @@ def fetch_data(mode, req_type, name, date_str):
|
|
| 80 |
elif req_type == "nse_future":
|
| 81 |
return common.wrap(nsepython.nse_future(name))
|
| 82 |
elif req_type == "nse_highlow":
|
| 83 |
-
return
|
|
|
|
|
|
|
| 84 |
elif req_type == "nse_bhav":
|
| 85 |
return bhavcopy_html.build_bhavcopy_html(to_date)
|
| 86 |
elif req_type == "nse_largedeals":
|
|
|
|
| 25 |
|
| 26 |
INDEX_REQ = [
|
| 27 |
"indices", "nse_open", "nse_preopen", "nse_fno", "nse_fiidii",
|
| 28 |
+
"nse_events", "nse_future", "nse_bhav", "nse_highlow","stock_highlow",
|
| 29 |
"index_history", "nse_largedeals", "nse_most_active",
|
| 30 |
"largedeals_historical", "nse_bulkdeals", "nse_blockdeals",
|
| 31 |
"index_pe_pb_div", "index_total_returns"
|
|
|
|
| 80 |
elif req_type == "nse_future":
|
| 81 |
return common.wrap(nsepython.nse_future(name))
|
| 82 |
elif req_type == "nse_highlow":
|
| 83 |
+
return nsepython.nse_highlow(to_date).to_html()
|
| 84 |
+
elif req_type == "stock_highlow":
|
| 85 |
+
return nsepython.stock_highlow(to_date).to_html()
|
| 86 |
elif req_type == "nse_bhav":
|
| 87 |
return bhavcopy_html.build_bhavcopy_html(to_date)
|
| 88 |
elif req_type == "nse_largedeals":
|