Code0ut commited on
Commit
69a254c
·
verified ·
1 Parent(s): ee875d8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. server/stock_price.py +1 -1
server/stock_price.py CHANGED
@@ -33,7 +33,7 @@ def get_stock_price(symbol, exchange, days=None):
33
  print("Using fallback for:", ticker)
34
 
35
  except Exception as e:
36
- print("ERROR:", str(e))
37
 
38
  # ✅ fallback always runs if API fails
39
  if symbol == "RELIANCE" and exchange == "nse":
 
33
  print("Using fallback for:", ticker)
34
 
35
  except Exception as e:
36
+ print("ERROR:", str(e),"yfinance API failed. Using fallback data if available.(This may be due to rate limits or network issues, please use RELIANCE/NSE or RELIANCE/BSE or AXISBANK/NSE or AXISBANK/BSE for stock symbol and exchange.)", flush=True)
37
 
38
  # ✅ fallback always runs if API fails
39
  if symbol == "RELIANCE" and exchange == "nse":