Skip to content

data_sources.py bypasses shared HTTP infrastructure #12

Description

@AshayK003

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

  • All HTTP calls go through the shared session infrastructure
  • No behavioral change

Difficulty: Easy
Labels: refactor, consistency

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions