Traceback (most recent call last): File "/Users/rafalsoltysek/scanner.py", line 12, in import yfinance as yf ModuleNotFoundError: No module named 'yfinance' [10:05:11 ET] Strategy result: {'pass': False, 'reasons': ['D1_not_above_prior_high', 'D2_prior_close_below_sma200', 'I1_not_above_premarket_high', 'I2_not_at_hod', 'I3_rvol_0.78x_lt_2.0x'], 'price': 4.7962} [10:05:11 ET] Not trading. Reasons: ['D1_not_above_prior_high', 'D2_prior_close_below_sma200', 'I1_not_above_premarket_high', 'I2_not_at_hod', 'I3_rvol_0.78x_lt_2.0x'] [10:05:04 ET] Scanning 5 symbols: ['ILLR', 'MSTZ', 'IONZ', 'RGTZ', 'NVD'] [10:05:04 ET] Connecting to IBKR... [10:05:05 ET] ILLR price=$4.81 rvol=0.89x [10:05:06 ET] MSTZ price=$17.53 rvol=0.16x [10:05:06 ET] IONZ price=$3.07 rvol=0.04x [10:05:06 ET] RGTZ price=$4.33 rvol=0.08x [10:05:06 ET] NVD price=$5.61 rvol=0.09x [10:05:06 ET] Best setup: ILLR price=$4.81 rvol=0.89x [10:05:06 ET] Running: /opt/homebrew/opt/python@3.11/bin/python3.11 bot.py --symbol ILLR [10:05:15 ET] Strategy result: {'pass': False, 'reasons': ['D2_prior_close_below_sma200', 'I1_not_above_premarket_high', 'I2_not_at_hod'], 'price': 14.12} [10:05:15 ET] Not trading. Reasons: ['D2_prior_close_below_sma200', 'I1_not_above_premarket_high', 'I2_not_at_hod'] [10:05:04 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:04 ET] Connecting to IBKR... [10:05:05 ET] WSHP price=$7.52 rvol=0.29x [10:05:05 ET] NOWL price=$4.56 rvol=0.26x [10:05:06 ET] SPCE price=$3.08 rvol=0.07x [10:05:06 ET] SLS price=$13.46 rvol=0.64x [10:05:06 ET] CBRG price=$4.49 rvol=0.25x [10:05:07 ET] AMC price=$2.16 rvol=0.14x [10:05:07 ET] RPAY price=$4.31 rvol=2.77x [10:05:07 ET] CCXI price=$15.41 rvol=1.04x [10:05:07 ET] ABCL price=$8.06 rvol=0.46x [10:05:08 ET] PTIR price=$9.52 rvol=0.40x [10:05:08 ET] MBRX price=$3.27 rvol=0.57x [10:05:08 ET] CONL price=$4.34 rvol=0.13x [10:05:09 ET] SKYQ price=$3.66 rvol=0.19x [10:05:09 ET] WEN price=$7.67 rvol=0.19x [10:05:09 ET] MARA price=$14.30 rvol=0.10x [10:05:10 ET] SIDU price=$2.76 rvol=0.11x [10:05:10 ET] UPC price=$13.91 rvol=79.92x [10:05:11 ET] SOFI price=$18.01 rvol=0.06x [10:05:11 ET] Best setup: UPC price=$13.91 rvol=79.92x [10:05:11 ET] Running: /opt/homebrew/opt/python@3.11/bin/python3.11 bot.py --symbol UPC [10:05:20 ET] Strategy result: {'pass': False, 'reasons': ['D1_not_above_prior_high', 'D2_prior_close_below_sma200', 'D3_gap_-16.2pct_lt_3.0pct', 'I1_not_above_premarket_high', 'I2_not_at_hod', 'I3_rvol_1.09x_lt_2.0x'], 'price': 2.76} [10:05:20 ET] Not trading. Reasons: ['D1_not_above_prior_high', 'D2_prior_close_below_sma200', 'D3_gap_-16.2pct_lt_3.0pct', 'I1_not_above_premarket_high', 'I2_not_at_hod', 'I3_rvol_1.09x_lt_2.0x'] [10:05:06 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:06 ET] Connecting to IBKR... [10:05:07 ET] WSHP price=$8.57 rvol=0.03x [10:05:07 ET] NOWL price=$4.26 rvol=0.15x [10:05:08 ET] SPCE price=$2.94 rvol=0.03x [10:05:08 ET] SLS price=$14.21 rvol=0.48x [10:05:09 ET] CBRG price=$5.04 rvol=0.21x [10:05:09 ET] AMC price=$2.04 rvol=0.05x [10:05:10 ET] RPAY price=$4.22 rvol=0.08x [10:05:10 ET] CCXI price=$16.70 rvol=0.72x [10:05:11 ET] ABCL price=$7.91 rvol=0.19x [10:05:11 ET] PTIR price=$9.27 rvol=0.23x [10:05:12 ET] MBRX price=$2.75 rvol=1.14x [10:05:12 ET] CONL price=$4.17 rvol=0.13x [10:05:13 ET] SKYQ price=$3.71 rvol=0.08x [10:05:14 ET] WEN price=$8.06 rvol=0.12x [10:05:15 ET] MARA price=$13.41 rvol=0.15x [10:05:15 ET] SIDU price=$2.85 rvol=0.07x [10:05:16 ET] UPC price=$7.36 rvol=0.08x [10:05:16 ET] SOFI price=$17.98 rvol=0.06x [10:05:16 ET] Best setup: MBRX price=$2.75 rvol=1.14x [10:05:16 ET] Running: /opt/homebrew/opt/python@3.11/bin/python3.11 bot.py --symbol MBRX API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:03 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:03 ET] Connecting to IBKR... [10:05:03 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:02 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:02 ET] Connecting to IBKR... [10:05:02 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:05 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:05 ET] Connecting to IBKR... [10:05:05 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:01 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:01 ET] Connecting to IBKR... [10:05:01 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:02 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:02 ET] Connecting to IBKR... [10:05:02 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:01 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:01 ET] Connecting to IBKR... [10:05:01 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:39 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:39 ET] Connecting to IBKR... [10:05:39 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:06 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:06 ET] Connecting to IBKR... [10:05:06 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:00 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:00 ET] Connecting to IBKR... [10:05:00 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:05 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:05 ET] Connecting to IBKR... [10:05:05 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:01 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:01 ET] Connecting to IBKR... [10:05:01 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:01 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:01 ET] Connecting to IBKR... [10:05:01 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:01 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:01 ET] Connecting to IBKR... [10:05:01 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:00 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:00 ET] Connecting to IBKR... [10:05:00 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:01 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:01 ET] Connecting to IBKR... [10:05:01 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:02 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:02 ET] Connecting to IBKR... [10:05:02 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:05 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:05 ET] Connecting to IBKR... [10:05:05 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:02 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:02 ET] Connecting to IBKR... [10:05:02 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:01 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:01 ET] Connecting to IBKR... [10:05:01 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:04 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:04 ET] Connecting to IBKR... [10:05:04 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:05 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:05 ET] Connecting to IBKR... [10:05:05 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497) API connection failed: ConnectionRefusedError(61, "Connect call failed ('127.0.0.1', 7497)") Make sure API port on TWS/IBG is open [10:05:05 ET] Scanning 18 symbols: ['WSHP', 'NOWL', 'SPCE', 'SLS', 'CBRG', 'AMC', 'RPAY', 'CCXI', 'ABCL', 'PTIR', 'MBRX', 'CONL', 'SKYQ', 'WEN', 'MARA', 'SIDU', 'UPC', 'SOFI'] [10:05:05 ET] Connecting to IBKR... [10:05:05 ET] IBKR connection failed: [Errno 61] Connect call failed ('127.0.0.1', 7497)