fix(settings): honor per-day trading hours and refresh SuperAdmin overlay
Use trading_hours_by_day for close_price gates, prefer public SuperAdmin fetch, and add refresh endpoint/command so stale last-good cache no longer keeps switches like enable_automation off. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -142,6 +142,8 @@ class LivePriceCacheService
|
||||
: ['sell' => $payload['sell'] ?? 0, 'buy' => $payload['buy'] ?? 0];
|
||||
$payload['last_historical'] = $display->resolveHistoricalBasePrice();
|
||||
|
||||
$payload = $config->applyGlobalTradingHoursToPayload($payload);
|
||||
|
||||
return app(ZaarboxPriceService::class)->attachGoldOunceToPayload($payload);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user