TCPDashboard/app_new.py
Vasily.onl 132710a9a7 3.6 Enhance market statistics with comprehensive data analysis features
- Updated `register_chart_callbacks` to include enhanced market statistics.
- Implemented new data analysis callbacks in `dashboard/callbacks/data_analysis.py` for volume and price movement analysis.
- Created `VolumeAnalyzer` and `PriceMovementAnalyzer` classes for detailed statistical calculations.
- Integrated data analysis components into the market statistics layout, providing users with insights on volume trends and price movements.
- Improved error handling and logging for data analysis operations.
- Updated documentation to reflect the new features and usage guidelines.
2025-06-05 11:24:21 +08:00

44 lines
1.3 KiB
Python

"""
Crypto Trading Bot Dashboard - Modular Version
This is the main entry point for the dashboard application using the new modular structure.
"""
from dashboard import create_app
from utils.logger import get_logger
logger = get_logger("main")
def main():
"""Main entry point for the dashboard application."""
try:
# Create the dashboard app
app = create_app()
# Import and register all callbacks after app creation
from dashboard.callbacks import (
register_navigation_callbacks,
register_chart_callbacks,
register_indicator_callbacks,
register_system_health_callbacks
)
# Register all callback modules
register_navigation_callbacks(app)
register_chart_callbacks(app) # Now includes enhanced market statistics
register_indicator_callbacks(app) # Placeholder for now
register_system_health_callbacks(app) # Placeholder for now
logger.info("Dashboard application initialized successfully")
# Run the app (updated for newer Dash version)
app.run(debug=True, host='0.0.0.0', port=8050)
except Exception as e:
logger.error(f"Failed to start dashboard application: {e}")
raise
if __name__ == '__main__':
main()