Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,10 +16,11 @@ from pytz import timezone
|
|
16 |
def get_data():
|
17 |
print('Hello')
|
18 |
a=(nse_fno("BANKNIFTY"))
|
|
|
19 |
last_prices=round(nse_quote_ltp("BANKNIFTY"))
|
20 |
exp=list(set(a['expiryDates']))
|
21 |
exp.sort(key = lambda date: datetime.strptime(date, '%d-%b-%Y'))
|
22 |
-
print(exp)
|
23 |
if last_prices%100>50:
|
24 |
x=(last_prices-last_prices%100+100)
|
25 |
strike=[x-200,x-100,x,x+100,x+200]
|
|
|
16 |
def get_data():
|
17 |
print('Hello')
|
18 |
a=(nse_fno("BANKNIFTY"))
|
19 |
+
print(a)
|
20 |
last_prices=round(nse_quote_ltp("BANKNIFTY"))
|
21 |
exp=list(set(a['expiryDates']))
|
22 |
exp.sort(key = lambda date: datetime.strptime(date, '%d-%b-%Y'))
|
23 |
+
# print(exp)
|
24 |
if last_prices%100>50:
|
25 |
x=(last_prices-last_prices%100+100)
|
26 |
strike=[x-200,x-100,x,x+100,x+200]
|