Detecting S&P Midcap 400 Volatility Spikes Using Indices-API for Portfolio Adjustment