Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,7 @@ def get_data():
|
|
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 |
if last_prices%100>50:
|
23 |
x=(last_prices-last_prices%100+100)
|
24 |
strike=[x-200,x-100,x,x+100,x+200]
|
|
|
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]
|