Problem
data_sources.py:28 imports requests at module level and uses it directly in AlphaVantageSource.fetch() (line 280) and NSEIndiaSource (line 326). Meanwhile, core/http.py provides a get_browser_session() that uses curl_cffi for TLS impersonation. The direct requests usage bypasses the project's own HTTP infrastructure.
Solution
Use get_browser_session() from core/http.py instead of raw requests. Or at minimum, use the shared session pattern.
Acceptance Criteria
Difficulty: Easy
Labels: refactor, consistency
Problem
data_sources.py:28importsrequestsat module level and uses it directly inAlphaVantageSource.fetch()(line 280) andNSEIndiaSource(line 326). Meanwhile,core/http.pyprovides aget_browser_session()that uses curl_cffi for TLS impersonation. The directrequestsusage bypasses the project's own HTTP infrastructure.Solution
Use
get_browser_session()fromcore/http.pyinstead of rawrequests. Or at minimum, use the shared session pattern.Acceptance Criteria
Difficulty: Easy
Labels: refactor, consistency