Spaces:
Running
Running
Update src/app.py
Browse files- src/app.py +2 -2
src/app.py
CHANGED
|
@@ -131,7 +131,7 @@ enddate.value = get_last_friday()
|
|
| 131 |
option_type = pn.widgets.Select(name='Option Type', options=['C', 'P'])
|
| 132 |
option_type.value = 'C'
|
| 133 |
|
| 134 |
-
strike_price = pn.widgets.IntInput(name='
|
| 135 |
|
| 136 |
interval = pn.widgets.Select(name='Time Frame (min)', options=['1', '5', '10'])
|
| 137 |
timeframe = "minute" #The only supported resolutions are minute|hour|day|week|month|quarter|year"0
|
|
@@ -153,4 +153,4 @@ def make_candle_stick(ticker , exp_date, option_type, strike_price, interval ,st
|
|
| 153 |
return candlechart
|
| 154 |
|
| 155 |
bound_plot = pn.bind( make_candle_stick, ticker = ticker, exp_date=exp_date , option_type=option_type ,strike_price=strike_price, interval=interval , startdate=startdate,enddate=enddate)
|
| 156 |
-
pn.Row(pn.Column(ticker, exp_date , option_type , strike_price , interval ,
|
|
|
|
| 131 |
option_type = pn.widgets.Select(name='Option Type', options=['C', 'P'])
|
| 132 |
option_type.value = 'C'
|
| 133 |
|
| 134 |
+
strike_price = pn.widgets.IntInput(name='Strike', value=850, step=10, start=0, end=1000)
|
| 135 |
|
| 136 |
interval = pn.widgets.Select(name='Time Frame (min)', options=['1', '5', '10'])
|
| 137 |
timeframe = "minute" #The only supported resolutions are minute|hour|day|week|month|quarter|year"0
|
|
|
|
| 153 |
return candlechart
|
| 154 |
|
| 155 |
bound_plot = pn.bind( make_candle_stick, ticker = ticker, exp_date=exp_date , option_type=option_type ,strike_price=strike_price, interval=interval , startdate=startdate,enddate=enddate)
|
| 156 |
+
pn.Row(pn.Column(ticker, exp_date , option_type , strike_price , interval , startdate , enddate), bound_plot).servable(title="Intraday Options Price - Pattern Detection")
|