--- title: generate_data description: The generate_data function in openbb.stocks.options gets x values, and y values before and after premiums. It doesn't take any parameters or return anything. keywords: - generate_data - x values - y values - premiums - current_price - options - underlying - openbb.stocks.options --- import HeadTitle from '@site/src/components/General/HeadTitle.tsx'; Gets x values, and y values before and after premiums Source Code: [[link](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/openbb_terminal/stocks/options/yfinance_model.py#L287)] ```python openbb.stocks.options.generate_data(current_price: float, options: List[Dict[str, int]], underlying: int) ``` --- ## Parameters This function does not take any parameters. --- ## Returns This function does not return anything ---