From b9159690ef3673e2db8e2ed97d3b67082f9727ce Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 2 Jul 2025 01:59:54 +0300 Subject: [PATCH] Fix COB ladder bucket sizes: ETH uses buckets, BTC uses buckets - Fixed hardcoded bucket_size = 10 in component_manager.py - Now uses symbol-specific bucket sizes: ETH = , BTC = - Matches the COB provider configuration and launch.json settings - ETH/USDT will now show proper price granularity in dashboard - BTC/USDT continues to use buckets as intended --- web/component_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/component_manager.py b/web/component_manager.py index 7b468b6..c7b062b 100644 --- a/web/component_manager.py +++ b/web/component_manager.py @@ -349,7 +349,8 @@ class DashboardComponentManager: def _create_cob_ladder_panel(self, bids, asks, mid_price, symbol=""): """Creates the right panel with the compact COB ladder.""" - bucket_size = 10 + # Use symbol-specific bucket sizes: ETH = $1, BTC = $10 + bucket_size = 1.0 if "ETH" in symbol else 10.0 num_levels = 5 def aggregate_buckets(orders):