Upload folder using huggingface_hub
Browse files- server/stock_price.py +1 -1
server/stock_price.py
CHANGED
|
@@ -13,7 +13,7 @@ axisbank_nse_stock_history=[1222.5, 1221.5999755859375, 1225.199951171875, 1241.
|
|
| 13 |
def get_stock_price(symbol, exchange, days=None):
|
| 14 |
try:
|
| 15 |
symbol = symbol.upper()
|
| 16 |
-
exchange = exchange.lower()
|
| 17 |
|
| 18 |
if exchange == "nse":
|
| 19 |
ticker = symbol + ".NS"
|
|
|
|
| 13 |
def get_stock_price(symbol, exchange, days=None):
|
| 14 |
try:
|
| 15 |
symbol = symbol.upper()
|
| 16 |
+
exchange = exchange.value.lower()
|
| 17 |
|
| 18 |
if exchange == "nse":
|
| 19 |
ticker = symbol + ".NS"
|