Update stdb.py
Browse files
stdb.py
CHANGED
|
@@ -25,10 +25,10 @@ def UpdatedCollectionName():
|
|
| 25 |
return collection_name
|
| 26 |
|
| 27 |
import concurrent.futures
|
| 28 |
-
|
| 29 |
|
| 30 |
def get_live_price(symbol):
|
| 31 |
-
return
|
| 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']:
|