jarvisx17 commited on
Commit
c32d5e8
·
verified ·
1 Parent(s): ff0b205

Update stdb.py

Browse files
Files changed (1) hide show
  1. stdb.py +2 -2
stdb.py CHANGED
@@ -25,10 +25,10 @@ def UpdatedCollectionName():
25
  return collection_name
26
 
27
  import concurrent.futures
28
- import yfinance as yf
29
 
30
  def get_live_price(symbol):
31
- return yf.Ticker(symbol).history(period="1d").iloc[-1][['High','Close']].round(2)
32
 
33
  def status(row):
34
  if row['LTP'] > row['High'] or row['High_T'] > row['High']:
 
25
  return collection_name
26
 
27
  import concurrent.futures
28
+ from stls import fetch_stock_data
29
 
30
  def get_live_price(symbol):
31
+ return fetch_stock_data(symbol.replace('.NS',''), interval=15, days=1).iloc[-1][['High', 'Close']].values
32
 
33
  def status(row):
34
  if row['LTP'] > row['High'] or row['High_T'] > row['High']: