Skip to content

feat: Parallelize Data Fetching and Pre-initialize LLM Agent to Reduce Decision Latency#438

Merged
vcfgv merged 3 commits intoValueCell-ai:mainfrom
lukecold:main
Nov 28, 2025
Merged

feat: Parallelize Data Fetching and Pre-initialize LLM Agent to Reduce Decision Latency#438
vcfgv merged 3 commits intoValueCell-ai:mainfrom
lukecold:main

Conversation

@lukecold
Copy link
Contributor

📝 Pull Request Template

1. Related Issue

Closes # (issue number)

2. Type of Change (select one)

Type of Change: New Feature

3. Description

This PR addresses performance bottlenecks in the decision cycle caused by large market data sets. The current process suffers from latency in both data fetching and LLM processing.
To mitigate this, we've implemented two key optimizations:

  1. Parallel Data Fetching: Market data and candles for each symbol/granularity are now fetched concurrently, significantly reducing data retrieval time.
  2. LLM Agent Pre-initialization: The LLM agent is now initialized once at build time with the system prompt, eliminating redundant setup costs on every cycle.

4. Testing

  • I have tested this locally.
  • I have updated or added relevant tests.

5. Checklist

vcfgv
vcfgv previously approved these changes Nov 27, 2025
@vcfgv vcfgv dismissed their stale review November 27, 2025 08:05

not intended to approve but comment

@lukecold lukecold requested a review from vcfgv November 27, 2025 13:58
Copy link
Collaborator

@vcfgv vcfgv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vcfgv
Copy link
Collaborator

vcfgv commented Nov 28, 2025

Thank you for your contribution! We really appreciate your help in improving the project.

@vcfgv vcfgv merged commit 2e04648 into ValueCell-ai:main Nov 28, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants