From e3811b6192c46eca1aa21db8de459acad104ce07 Mon Sep 17 00:00:00 2001 From: liuping Date: Sun, 6 Jul 2025 02:18:15 +0800 Subject: [PATCH] fix: resolve get_ticker function parameter mismatch error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit � Problem Fixed: - Remove duplicate get_ticker() function in main.py that had no parameters - This function was overriding the correct get_ticker(market=None) from utils.py - Caused TypeError: get_ticker() takes 0 positional arguments but 1 was given ✅ Solution: - Delete old get_ticker() function from main.py (line 506-508) - Keep only the correct get_ticker(market=None) function in utils.py - Function now properly accepts market parameter for market-specific validation � Test Results: - Function signature: (market=None) -> str ✅ - Function location: cli/utils.py line 67 ✅ - No import conflicts ✅ - CLI startup working ✅ - Market selection working ✅ Now users can successfully: 1. Select market (US Stock or China A-Share) 2. Enter ticker with market-specific validation 3. Continue with analysis workflow The CLI now properly handles market selection and ticker input without parameter errors. --- cli/main.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cli/main.py b/cli/main.py index 4b623d8f..f4a43695 100644 --- a/cli/main.py +++ b/cli/main.py @@ -503,11 +503,6 @@ def get_user_selections(): } -def get_ticker(): - """Get ticker symbol from user input.""" - return typer.prompt("", default="SPY") - - def get_analysis_date(): """Get the analysis date from user input.""" while True: