summaryrefslogtreecommitdiff
path: root/services/data-collector/src/data_collector
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 15:42:23 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-02 15:42:23 +0900
commit8da5fb843856bb6585c6753f44d422beaa4a8204 (patch)
tree198c0e6b44ddb0981a48332effaad1276e643886 /services/data-collector/src/data_collector
parent0e177eafbed026445e50da6a5992177521fb8212 (diff)
fix: deduplicate LLM JSON parsing and reuse aiohttp sessions in stock selector
Extract _extract_json_array() to eliminate duplicate JSON parsing logic between _parse_llm_selections() and LLMCandidateSource._parse_candidates(). Add session reuse in StockSelector via _ensure_session()/close() methods instead of creating new aiohttp.ClientSession per HTTP call. Pass shared session to LLMCandidateSource.get_candidates().
Diffstat (limited to 'services/data-collector/src/data_collector')
0 files changed, 0 insertions, 0 deletions