From 3d12f504181483709b49f100a8056dbaa4dab00b Mon Sep 17 00:00:00 2001 From: Investor Flow Build Date: Sat, 25 Jul 2026 13:17:16 -0400 Subject: [PATCH] fix: queue short interest fetches on subscribe alongside quote/candles - Add yfinance:shortinterest: and nasdaq:nasdaqShortinterest: to subscribe() initial queue list so short interest data is fetched proactively when a symbol is first viewed, rather than only on stale read - FINRA remains bulk-schedule only via queue_schedules --- app/server/src/cache/CacheRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server/src/cache/CacheRepository.ts b/app/server/src/cache/CacheRepository.ts index 929196c..0103e83 100644 --- a/app/server/src/cache/CacheRepository.ts +++ b/app/server/src/cache/CacheRepository.ts @@ -418,7 +418,7 @@ export class CacheRepositoryImpl implements CacheRepository { d.prepare('UPDATE symbol_demand SET refcount = refcount + 1, in_demand = 1 WHERE symbol=?').run(symbol); if (before === 0) { // First demand: schedule initial cache population (slice 1: yfinance quote + symbol meta + candles + adjustments) - for (const k of [`yfinance:quote:${symbol}`, `yfinance:symbol:${symbol}`, `yfinance:candles:${symbol}:1d`, `yfinance:adjustments:${symbol}`]) { + for (const k of [`yfinance:quote:${symbol}`, `yfinance:symbol:${symbol}`, `yfinance:candles:${symbol}:1d`, `yfinance:adjustments:${symbol}`, `yfinance:shortinterest:${symbol}`, `nasdaq:nasdaqShortinterest:${symbol}`]) { try { await this._scheduler.queue(k); } catch { /* ignore */ } } }