fix(sse): send per-product trade_open from server trading hours
The list stream must tell clients whether each product is open so the device clock cannot reopen a closed shop. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -207,6 +207,7 @@ class PriceBroadcastService
|
||||
'reading_method' => (string) ($product['reading_method'] ?? ''),
|
||||
'price_offset_percent' => (float) ($product['price_offset_percent'] ?? 0),
|
||||
'show' => (bool) ($product['show'] ?? true),
|
||||
'trade_open' => (bool) ($product['trade_open'] ?? $product['show'] ?? true),
|
||||
'active' => (bool) ($product['active'] ?? true),
|
||||
'reference_provider_active' => (bool) ($product['reference_provider_active'] ?? false),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user