Spaces:
Running
Running
Update daily.py
Browse files
daily.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
# daily.py
|
|
|
|
| 2 |
import yfinance as yf
|
| 3 |
-
import pandas as pd
|
| 4 |
from common import wrap_plotly_html, make_table
|
| 5 |
from indicater import calculate_indicators
|
| 6 |
from chart_builder import build_chart
|
|
@@ -8,7 +8,7 @@ from chart_builder import build_chart
|
|
| 8 |
def fetch_daily(symbol):
|
| 9 |
"""
|
| 10 |
Fetch daily OHLC + volume data for the past 1 year and render as HTML chart + table
|
| 11 |
-
with selectable indicators
|
| 12 |
"""
|
| 13 |
yfsymbol = f"{symbol}.NS"
|
| 14 |
try:
|
|
|
|
| 1 |
# daily.py
|
| 2 |
+
import pandas as pd # <-- required
|
| 3 |
import yfinance as yf
|
|
|
|
| 4 |
from common import wrap_plotly_html, make_table
|
| 5 |
from indicater import calculate_indicators
|
| 6 |
from chart_builder import build_chart
|
|
|
|
| 8 |
def fetch_daily(symbol):
|
| 9 |
"""
|
| 10 |
Fetch daily OHLC + volume data for the past 1 year and render as HTML chart + table
|
| 11 |
+
with selectable indicators.
|
| 12 |
"""
|
| 13 |
yfsymbol = f"{symbol}.NS"
|
| 14 |
try:
|