diff --git a/src/screener/t_sunnyband.py b/src/screener/t_sunnyband.py index 8447025..7007a84 100644 --- a/src/screener/t_sunnyband.py +++ b/src/screener/t_sunnyband.py @@ -235,7 +235,7 @@ def run_sunny_scanner(min_price: float, max_price: float, min_volume: int, portf bearish_signals = [] # Process each qualified stock - for ticker, current_price, current_volume, last_update in qualified_stocks: + for ticker, current_price, current_volume, last_update, stock_type in qualified_stocks: try: # Get historical data based on interval df = get_stock_data(ticker, start_date, end_date, interval) @@ -259,6 +259,7 @@ def run_sunny_scanner(min_price: float, max_price: float, min_volume: int, portf 'target_price': signal_data['upper_band'], 'signal_date': signal_date, 'volume': current_volume, + 'stock_type': stock_type, 'last_update': datetime.fromtimestamp(last_update/1000000000), 'shares': position['shares'], 'position_size': position['position_value'],