Skip to content

Async HTTP — replace ThreadPoolExecutor with asyncio + httpx #20

Description

@dfdezdom

Description

Replace the current ThreadPoolExecutor approach with asyncio + httpx for non-blocking concurrent fetching.

Acceptance criteria

  • recommend() uses asyncio internally or exposes an async API alongside sync
  • yfinance calls wrapped in async (via httpx or aiohttp)
  • Performance at least as good as current ThreadPoolExecutor
  • Backwards-compatible sync API maintained

Notes

Medium-to-high effort. yfinance is synchronous internally, so we would need to either use asyncio.to_thread() or switch to direct API calls via httpx. Worth evaluating if yfinance rate limits are a bottleneck.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogFeature planned but not yet prioritizedenhancementNew feature or requestpriority: lowLow priority — nice to have

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions