QuantumLearner commited on
Commit
2a8a1f2
·
verified ·
1 Parent(s): e00e4be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,9 +95,9 @@ def plot_volatility_smile(options_data, recent_price, ticker):
95
  avg_iv_by_strike_puts = puts_data.groupby("strike")["implied_volatility"].mean()
96
 
97
  fig.add_trace(go.Scatter(x=avg_iv_by_strike_calls.index, y=avg_iv_by_strike_calls.values, mode='lines',
98
- line=dict(color='black', dash='dash'), name='Avg. IV by Strike (Calls)'), row=1, col=1)
99
  fig.add_trace(go.Scatter(x=avg_iv_by_strike_puts.index, y=avg_iv_by_strike_puts.values, mode='lines',
100
- line=dict(color='black', dash='dash'), name='Avg. IV by Strike (Puts)', showlegend=False), row=1, col=2)
101
 
102
  overall_avg_iv_calls = calls_data["implied_volatility"].mean()
103
  overall_avg_iv_puts = puts_data["implied_volatility"].mean()
 
95
  avg_iv_by_strike_puts = puts_data.groupby("strike")["implied_volatility"].mean()
96
 
97
  fig.add_trace(go.Scatter(x=avg_iv_by_strike_calls.index, y=avg_iv_by_strike_calls.values, mode='lines',
98
+ line=dict(color='white', dash='dash'), name='Avg. IV by Strike (Calls)'), row=1, col=1)
99
  fig.add_trace(go.Scatter(x=avg_iv_by_strike_puts.index, y=avg_iv_by_strike_puts.values, mode='lines',
100
+ line=dict(color='white', dash='dash'), name='Avg. IV by Strike (Puts)', showlegend=False), row=1, col=2)
101
 
102
  overall_avg_iv_calls = calls_data["implied_volatility"].mean()
103
  overall_avg_iv_puts = puts_data["implied_volatility"].mean()