eshan6704 commited on
Commit
cf177c3
·
verified ·
1 Parent(s): e15ccf2

Update daily.py

Browse files
Files changed (1) hide show
  1. daily.py +1 -1
daily.py CHANGED
@@ -11,7 +11,7 @@ def fetch_daily(symbol, max_rows=200):
11
  """
12
  try:
13
  # --- Fetch historical data ---
14
- df = yf.download(symbol + ".NS", period="6mo", interval="1d").round(2)
15
 
16
  if isinstance(combined_df.columns, pd.MultiIndex):
17
  combined_df.columns = combined_df.columns.get_level_values(0)
 
11
  """
12
  try:
13
  # --- Fetch historical data ---
14
+ df = yf.download(symbol + ".NS", period="1y", interval="1d").round(2)
15
 
16
  if isinstance(combined_df.columns, pd.MultiIndex):
17
  combined_df.columns = combined_df.columns.get_level_values(0)