Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

Merge remote-tracking branch with conflict resolution

tilakpatel225a48fa9253ce
diff --cc fincept-terminal-desktop/src-tauri/resources/scripts/yfinance_data.py
index 19e18e7e6,4f9a21256..0f81ec2c2
--- a/fincept-terminal-desktop/src-tauri/resources/scripts/yfinance_data.py
+++ b/fincept-terminal-desktop/src-tauri/resources/scripts/yfinance_data.py
@@@ -244,12 -238,8 +244,12 @@@ def get_financials(symbol)
def get_batch_quotes(symbols):
"""Fetch quotes for multiple symbols at once using yfinance batch download"""
try:
- # Use yfinance download() for true batch fetching (single HTTP request)
- data = yf.download(symbols, period="2d", group_by='ticker', progress=False, threads=True, auto_adjust=True)
+ import io, contextlib
+ # Suppress any stdout noise from yfinance (progress bars, deprecation notices)
+ # that would corrupt the JSON output parsed by Rust
+ _buf = io.StringIO()
+ with contextlib.redirect_stdout(_buf):
- data = yf.download(symbols, period="5d", group_by='ticker', progress=False, threads=False, auto_adjust=True)
++ data = yf.download(symbols, period="2d", group_by='ticker', progress=False, threads=True, auto_adjust=True)
if data is None or data.empty:
return []