better clean dash
This commit is contained in:
12
main.py
12
main.py
@ -144,8 +144,8 @@ def start_web_ui(port=8051):
|
||||
logger.info("COB Integration: ENABLED (Real-time order book visualization)")
|
||||
logger.info("=" * 50)
|
||||
|
||||
# Import and create the main TradingDashboard with COB integration
|
||||
from web.dashboard import TradingDashboard
|
||||
# Import and create the Clean Trading Dashboard with COB integration
|
||||
from web.clean_dashboard import CleanTradingDashboard
|
||||
from core.data_provider import DataProvider
|
||||
from core.enhanced_orchestrator import EnhancedTradingOrchestrator # Use enhanced version with COB
|
||||
from core.trading_executor import TradingExecutor
|
||||
@ -188,19 +188,19 @@ def start_web_ui(port=8051):
|
||||
|
||||
trading_executor = TradingExecutor("config.yaml")
|
||||
|
||||
# Create the main trading dashboard with enhanced features
|
||||
dashboard = TradingDashboard(
|
||||
# Create the clean trading dashboard with enhanced features
|
||||
dashboard = CleanTradingDashboard(
|
||||
data_provider=data_provider,
|
||||
orchestrator=dashboard_orchestrator,
|
||||
trading_executor=trading_executor
|
||||
)
|
||||
|
||||
logger.info("Enhanced TradingDashboard created successfully")
|
||||
logger.info("Clean Trading Dashboard created successfully")
|
||||
logger.info("Features: Live trading, COB visualization, RL training monitoring, Position management")
|
||||
logger.info("✅ Checkpoint management integrated for training persistence")
|
||||
|
||||
# Run the dashboard server (COB integration will start automatically)
|
||||
dashboard.app.run(host='127.0.0.1', port=port, debug=False, use_reloader=False)
|
||||
dashboard.run_server(host='127.0.0.1', port=port, debug=False)
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error starting main trading dashboard UI: {e}")
|
||||
|
Reference in New Issue
Block a user