eshan6704 commited on
Commit
9d51b51
·
verified ·
1 Parent(s): d945346

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -94,14 +94,14 @@ def fetch_data(mode, req_type, name, date_str):
94
  return wrap(nse_highlow())
95
  elif req_type == "nse_bhav":
96
  return build_bhavcopy_html(date_str) # no default
97
- elif req_type == "nse_largedeals":
98
  return nse_largedeals().to_html()
99
- elif req_type == "nse_bulkdeals":
100
  return nse_bulkdeals().to_html()
101
 
102
- elif req_type == "nse_blockdeals":
103
  return nse_blockdeals().to_html()
104
- elif req_type == "nse_most_active":
105
  return nse_most_active().to_html()
106
  elif req_type == "index_history":
107
  return index_history("NIFTY 50",date_start,date_str).to_html() # no default
@@ -111,8 +111,7 @@ def fetch_data(mode, req_type, name, date_str):
111
  return index_pe_pb_div("NIFY 50",date_start,date_str).to_html() # no default
112
  elif req_type == "index_total_returns":
113
  return index_total_returns("NIFY 50",date_start,date_str).to_html() # no default
114
-
115
- nse_largedeals_historical
116
 
117
  else:
118
  return wrap(f"<h3>No handler for {req_type}</h3>")
 
94
  return wrap(nse_highlow())
95
  elif req_type == "nse_bhav":
96
  return build_bhavcopy_html(date_str) # no default
97
+ elif req_type == "nse_largedeals":
98
  return nse_largedeals().to_html()
99
+ elif req_type == "nse_bulkdeals":
100
  return nse_bulkdeals().to_html()
101
 
102
+ elif req_type == "nse_blockdeals":
103
  return nse_blockdeals().to_html()
104
+ elif req_type == "nse_most_active":
105
  return nse_most_active().to_html()
106
  elif req_type == "index_history":
107
  return index_history("NIFTY 50",date_start,date_str).to_html() # no default
 
111
  return index_pe_pb_div("NIFY 50",date_start,date_str).to_html() # no default
112
  elif req_type == "index_total_returns":
113
  return index_total_returns("NIFY 50",date_start,date_str).to_html() # no default
114
+
 
115
 
116
  else:
117
  return wrap(f"<h3>No handler for {req_type}</h3>")