# intraday.py import yfinance as yf import pandas as pd from common import format_large_number, wrap_html, make_table from chart_builder import build_chart # ============================================================ # INTRADAY DATA PROCESSING # ============================================================ def fetch_intraday(symbol, indicators=None): """ Fetch intraday (5-min) data for a symbol from Yahoo Finance, format it, apply indicators, and return full HTML. """ yfsymbol = f"{symbol}.NS" try: # Fetch 1-day intraday 5-min interval df = yf.download(yfsymbol, period="1d", interval="5m").round(2) if df.empty: return wrap_html(f"
{str(e)}
")