Spaces:
Running
Running
Update app/index_live_html.py
Browse files- 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 |
-
|
| 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())
|