try to fix training
This commit is contained in:
@ -69,14 +69,16 @@ except ImportError:
|
||||
COB_INTEGRATION_AVAILABLE = False
|
||||
logger.warning("COB integration not available")
|
||||
|
||||
# Add Universal Data Stream imports
|
||||
try:
|
||||
from core.unified_data_stream import UnifiedDataStream
|
||||
from core.universal_data_adapter import UniversalDataAdapter, UniversalDataStream as UDS
|
||||
UNIFIED_STREAM_AVAILABLE = True
|
||||
except ImportError:
|
||||
UNIFIED_STREAM_AVAILABLE = False
|
||||
logger.warning("Unified Data Stream not available")
|
||||
# Universal Data Stream - temporarily disabled due to import issues
|
||||
UNIFIED_STREAM_AVAILABLE = False
|
||||
|
||||
# Placeholder class for disabled Universal Data Stream
|
||||
class UnifiedDataStream:
|
||||
"""Placeholder for disabled Universal Data Stream"""
|
||||
def __init__(self, *args, **kwargs):
|
||||
pass
|
||||
def register_consumer(self, *args, **kwargs):
|
||||
return "disabled"
|
||||
|
||||
# Import RL COB trader for 1B parameter model integration
|
||||
from core.realtime_rl_cob_trader import RealtimeRLCOBTrader, PredictionResult
|
||||
@ -2133,7 +2135,7 @@ class CleanTradingDashboard:
|
||||
opening_trade_record = {
|
||||
'symbol': symbol,
|
||||
'side': action,
|
||||
'quantity': size,
|
||||
'quantity': decision['size'], # Use size from decision
|
||||
'entry_price': current_price,
|
||||
'leverage': self.current_leverage, # Store leverage at entry
|
||||
'pnl': 0.0, # Will be updated when position closes
|
||||
|
Reference in New Issue
Block a user