wip
This commit is contained in:
37
run_fixed_dashboard.py
Normal file
37
run_fixed_dashboard.py
Normal file
@ -0,0 +1,37 @@
|
||||
#!/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.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()
|
Reference in New Issue
Block a user