From f8681447e3f2d2954219759fa162d8378471b100 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Tue, 27 May 2025 15:05:10 +0300 Subject: [PATCH] new API key --- .cursorrules | 3 +++ .env | 17 +++++++++++------ config.yaml | 14 ++++++++------ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/.cursorrules b/.cursorrules index 67d275f..40c989b 100644 --- a/.cursorrules +++ b/.cursorrules @@ -1,5 +1,8 @@ # Cursor AI Coding Rules for gogo2 Trading Dashboard Project +## Environment +- we are on windows 11 machine + ## Unicode and Encoding Rules - **NEVER use Unicode characters that may not be supported by Windows console (cp1252)** diff --git a/.env b/.env index 97467ce..ca9ad20 100644 --- a/.env +++ b/.env @@ -1,10 +1,15 @@ -# MEXC Exchange API Keys -MEXC_API_KEY=mx0vglGymMT4iLpHXD -MEXC_SECRET_KEY=557300a85ae84cf6b927b86278905fd7 -# # BASE ENDPOINTS: https://api.mexc.com wss://wbs-api.mexc.com/ws !!! DO NOT CHANGE THIS +# MEXC API Configuration (Spot Trading) +MEXC_API_KEY=mx0vglhVPZeIJ32Qw1 +MEXC_SECRET_KEY=3bfe4bd99d5541e4a1bca87ab257cc7e -# Trading Parameters -MAX_LEVERAGE=50 +# BASE ENDPOINTS: https://api.mexc.com wss://wbs-api.mexc.com/ws !!! DO NOT CHANGE THIS + +# Trading Parameters for Spot Trading +MAX_LEVERAGE=1 INITIAL_BALANCE=1000 STOP_LOSS_PERCENT=0.5 TAKE_PROFIT_PERCENT=1.5 + +# Other Environment Variables +NODE_ENV=production +PYTHONPATH=. diff --git a/config.yaml b/config.yaml index e61da89..2ffdab3 100644 --- a/config.yaml +++ b/config.yaml @@ -140,9 +140,12 @@ trading: # MEXC Trading API Configuration mexc_trading: enabled: true # Set to true to enable live trading - test_mode: false # Use test mode for safety (MEXC doesn't have true testnet) - api_key: "mx0vglGymMT4iLpHXD" # Set in .env file as MEXC_API_KEY - api_secret: "557300a85ae84cf6b927b86278905fd7" # Set in .env file as MEXC_SECRET_KEY + trading_mode: "live" # Options: "simulation", "testnet", "live" + # - simulation: No real trades, just logging (safest) + # - testnet: Use exchange testnet if available (MEXC doesn't have true testnet) + # - live: Execute real trades with real money + api_key: "" # Set in .env file as MEXC_API_KEY + api_secret: "" # Set in .env file as MEXC_SECRET_KEY # Position sizing (conservative for live trading) max_position_value_usd: 1.0 # Maximum $1 per position for testing @@ -153,7 +156,7 @@ mexc_trading: max_daily_loss_usd: 5.0 # Stop trading if daily loss exceeds $5 max_concurrent_positions: 3 # Only 1 position at a time for testing max_trades_per_hour: 60 # Maximum 60 trades per hour - min_trade_interval_seconds: 30 Minimum between trades + min_trade_interval_seconds: 30 # Minimum between trades # Order configuration order_type: "market" # Use market orders for immediate execution @@ -161,7 +164,6 @@ mexc_trading: retry_attempts: 0 # Number of retry attempts for failed orders # Safety features - dry_run_mode: false # Execute real trades (was true for testing) require_confirmation: false # No manual confirmation for live trading emergency_stop: false # Emergency stop all trading @@ -245,4 +247,4 @@ backtesting: model_paths: realtime_model: "NN/models/saved/optimized_short_term_model_realtime_best.pt" ticks_model: "NN/models/saved/optimized_short_term_model_ticks_best.pt" - backup_model: "NN/models/saved/realtime_ticks_checkpoints/checkpoint_epoch_50449_backup/model.pt" \ No newline at end of file + backup_model: "NN/models/saved/realtime_ticks_checkpoints/checkpoint_epoch_50449_backup/model.pt"