gogo2/run_fixed_dashboard.py
2025-05-29 14:08:14 +03:00

37 lines
914 B
Python

#!/usr/bin/env python3
"""
Run Fixed Scalping Dashboard
"""
import logging
import sys
import os
# Add project root to path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Setup logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
logger = logging.getLogger(__name__)
def main():
"""Run the enhanced scalping dashboard"""
try:
logger.info("Starting Enhanced Scalping Dashboard...")
from web.old_archived.scalping_dashboard import create_scalping_dashboard
dashboard = create_scalping_dashboard()
dashboard.run(host='127.0.0.1', port=8051, debug=True)
except Exception as e:
logger.error(f"Error starting dashboard: {e}")
import traceback
logger.error(f"Traceback: {traceback.format_exc()}")
if __name__ == "__main__":
main()