new API key

This commit is contained in:
Dobromir Popov 2025-05-27 15:05:10 +03:00
parent 2d2db276f3
commit f8681447e3
3 changed files with 22 additions and 12 deletions

View File

@ -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)**

17
.env
View File

@ -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=.

View File

@ -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"
backup_model: "NN/models/saved/realtime_ticks_checkpoints/checkpoint_epoch_50449_backup/model.pt"