Update daily.py
Browse files
daily.py
CHANGED
|
@@ -101,10 +101,10 @@ def daily(symbol,source="yfinace"):
|
|
| 101 |
# --- Standardize columns ---
|
| 102 |
df.columns = ["Close", "High", "Low", "Open", "Volume"]
|
| 103 |
df.reset_index(inplace=True) # make Date a column
|
| 104 |
-
|
| 105 |
if source=="NSE":
|
| 106 |
df=nse_del(symbol)
|
| 107 |
-
|
| 108 |
def fetch_daily(symbol, source,max_rows=200):
|
| 109 |
"""
|
| 110 |
Fetch daily OHLCV data, calculate TA-Lib indicators + patterns,
|
|
|
|
| 101 |
# --- Standardize columns ---
|
| 102 |
df.columns = ["Close", "High", "Low", "Open", "Volume"]
|
| 103 |
df.reset_index(inplace=True) # make Date a column
|
| 104 |
+
|
| 105 |
if source=="NSE":
|
| 106 |
df=nse_del(symbol)
|
| 107 |
+
return df
|
| 108 |
def fetch_daily(symbol, source,max_rows=200):
|
| 109 |
"""
|
| 110 |
Fetch daily OHLCV data, calculate TA-Lib indicators + patterns,
|