def build_mock_symbol_data(symbol, market_price): """Build mock data for a symbol.""" source_data = { DATA_SHORT_NAME: f"Symbol {symbol}", DATA_REGULAR_MARKET_PRICE: market_price, } return YahooSymbolUpdateCoordinator.parse_symbol_data(source_data)
def build_mock_symbol_data(symbol, market_price, currency="USD"): """Build mock data for a symbol.""" source_data = { DATA_FINANCIAL_CURRENCY: currency, DATA_SHORT_NAME: f"Symbol {symbol}", DATA_REGULAR_MARKET_PRICE: market_price, } return YahooSymbolUpdateCoordinator.parse_symbol_data(source_data)