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
This commit is contained in:
Dobromir Popov
2025-07-02 01:59:54 +03:00
parent 9639073a09
commit b9159690ef

View File

@ -349,7 +349,8 @@ class DashboardComponentManager:
def _create_cob_ladder_panel(self, bids, asks, mid_price, symbol=""): def _create_cob_ladder_panel(self, bids, asks, mid_price, symbol=""):
"""Creates the right panel with the compact COB ladder.""" """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 num_levels = 5
def aggregate_buckets(orders): def aggregate_buckets(orders):