fix: resolve get_ticker function parameter mismatch error
� 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.
This commit is contained in:
parent
1c6b54a48e
commit
e3811b6192
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue