eshan6704 commited on
Commit
f4ca6dd
·
verified ·
1 Parent(s): 7f97471

Update result.py

Browse files
Files changed (1) hide show
  1. result.py +4 -4
result.py CHANGED
@@ -1,12 +1,12 @@
1
  # result.py
2
  import yfinance as yf
3
  from common import make_table, wrap_html, format_large_number, html_error
4
-
5
  def fetch_result(symbol):
6
- yfsymbol = symbol + ".NS"
7
  try:
8
- ticker = yf.Ticker(yfsymbol)
9
- df = ticker.financials
10
 
11
  if df.empty:
12
  return wrap_html(f"<h1>No annual results available for {symbol}</h1>")
 
1
  # result.py
2
  import yfinance as yf
3
  from common import make_table, wrap_html, format_large_number, html_error
4
+ from yf import result
5
  def fetch_result(symbol):
6
+
7
  try:
8
+
9
+ df = result(symbol)
10
 
11
  if df.empty:
12
  return wrap_html(f"<h1>No annual results available for {symbol}</h1>")