eshan6704 commited on
Commit
c49b4d4
·
verified ·
1 Parent(s): 6109d73

Update app/index_live_html.py

Browse files
Files changed (1) hide show
  1. app/index_live_html.py +2 -2
app/index_live_html.py CHANGED
@@ -6,7 +6,7 @@ from datetime import datetime as dt
6
  from .persist import exists, load, save
7
 
8
 
9
- def build_index_live_html():
10
  """
11
  Live HTML for NIFTY 50
12
  - Intraday TTL (15 minutes)
@@ -23,7 +23,7 @@ def build_index_live_html():
23
  return cached_html
24
 
25
  # ================= LIVE FETCH =================
26
- index_name = "NIFTY 50"
27
  p = ns.nse_index_live(index_name)
28
 
29
  full_df = p.get("data", pd.DataFrame())
 
6
  from .persist import exists, load, save
7
 
8
 
9
+ def build_index_live_html(index_name = "NIFTY 50"):
10
  """
11
  Live HTML for NIFTY 50
12
  - Intraday TTL (15 minutes)
 
23
  return cached_html
24
 
25
  # ================= LIVE FETCH =================
26
+
27
  p = ns.nse_index_live(index_name)
28
 
29
  full_df = p.get("data", pd.DataFrame())