integration of (legacy) training systems, initialize, train, show on the UI

This commit is contained in:
Dobromir Popov
2025-07-05 00:33:03 +03:00
parent 5ca7493708
commit d260e73f9a
10 changed files with 647 additions and 151 deletions

View File

@ -219,7 +219,7 @@ class TradingExecutor:
quote_asset = 'USDC'
else:
# Fallback for symbols like ETHUSDT (assuming last 4 chars are quote)
quote_asset = symbol[-4:].upper()
quote_asset = symbol[-4:].upper()
# Convert USDT to USDC for MEXC spot trading
if quote_asset == 'USDT':
quote_asset = 'USDC'
@ -423,7 +423,7 @@ class TradingExecutor:
# Calculate simulated fees in simulation mode
taker_fee_rate = self.mexc_config.get('trading_fees', {}).get('taker_fee', 0.0006)
simulated_fees = position.quantity * current_price * taker_fee_rate
# Create trade record
trade_record = TradeRecord(
symbol=symbol,