(self, stock_price_data)
| 148 | return historical_prices, future_prices_list, False |
| 149 | |
| 150 | def calculate_volatility(self, stock_price_data): |
| 151 | CLOSE_PRICE_INDEX = 4 |
| 152 | stock_price_data_list = stock_price_data.values.tolist() |
| 153 | close_prices = [float(item[CLOSE_PRICE_INDEX]) for item in stock_price_data_list] |
| 154 | close_prices = [item for item in close_prices if item != 0] |
| 155 | volatility = np.std(close_prices) |
| 156 | return volatility |
| 157 | |
| 158 | def collect_data_for_all_tickers(self): |
| 159 | """ |
no outgoing calls
no test coverage detected