cleanup and reorgnization
This commit is contained in:
@ -51,14 +51,15 @@ async def start_training_pipeline(orchestrator, trading_executor):
|
||||
}
|
||||
|
||||
try:
|
||||
# Start real-time processing
|
||||
await orchestrator.start_realtime_processing()
|
||||
logger.info("Real-time processing started")
|
||||
# Start real-time processing (if available in Basic orchestrator)
|
||||
if hasattr(orchestrator, 'start_realtime_processing'):
|
||||
await orchestrator.start_realtime_processing()
|
||||
logger.info("Real-time processing started")
|
||||
else:
|
||||
logger.info("Real-time processing not available in Basic orchestrator")
|
||||
|
||||
# Start COB integration
|
||||
if hasattr(orchestrator, 'start_cob_integration'):
|
||||
await orchestrator.start_cob_integration()
|
||||
logger.info("COB integration started")
|
||||
# COB integration not available in Basic orchestrator
|
||||
logger.info("COB integration not available - using Basic orchestrator")
|
||||
|
||||
# Main training loop
|
||||
iteration = 0
|
||||
@ -139,20 +140,15 @@ def start_clean_dashboard_with_training():
|
||||
|
||||
# Initialize core components
|
||||
from core.data_provider import DataProvider
|
||||
from core.enhanced_orchestrator import EnhancedTradingOrchestrator
|
||||
from core.orchestrator import TradingOrchestrator
|
||||
from core.trading_executor import TradingExecutor
|
||||
|
||||
# Create data provider
|
||||
data_provider = DataProvider()
|
||||
|
||||
# Create enhanced orchestrator with full training capabilities
|
||||
orchestrator = EnhancedTradingOrchestrator(
|
||||
data_provider=data_provider,
|
||||
symbols=['ETH/USDT', 'BTC/USDT'],
|
||||
enhanced_rl_training=True, # Enable RL training
|
||||
model_registry={}
|
||||
)
|
||||
logger.info("Enhanced Trading Orchestrator created with training enabled")
|
||||
# Create basic orchestrator - stable and efficient
|
||||
orchestrator = TradingOrchestrator(data_provider)
|
||||
logger.info("Basic Trading Orchestrator created for stability")
|
||||
|
||||
# Create trading executor
|
||||
trading_executor = TradingExecutor()
|
||||
|
Reference in New Issue
Block a user