"""
Configuration du Bot de Trading Crypto — EXEMPLE
=================================================
⚠️  COPIER ce fichier en config.py et remplir vos clés API
    cp config.example.py config.py

⚠️  Ne jamais committer config.py sur GitHub (déjà dans .gitignore)
"""

# ═══════════════════════════════════════════════════════════════════════════════
# API BINANCE
# ═══════════════════════════════════════════════════════════════════════════════

# Mode TESTNET (argent fictif) ou PRODUCTION (argent réel)
# Toujours commencer en TESTNET !
TESTNET_MODE = True

# Clés API Binance
# Pour le TESTNET: https://testnet.binance.vision/
# Pour la PRODUCTION: https://www.binance.com/fr/my/settings/api-management
BINANCE_API_KEY = "VOTRE_CLE_API_ICI"
BINANCE_API_SECRET = "VOTRE_SECRET_API_ICI"

# ═══════════════════════════════════════════════════════════════════════════════
# WATCHLIST (chargée depuis watchlist.json si disponible)
# ═══════════════════════════════════════════════════════════════════════════════
try:
    import json
    import os
    watchlist_file = os.path.join(os.path.dirname(__file__), 'watchlist.json')
    if os.path.exists(watchlist_file):
        with open(watchlist_file, 'r', encoding='utf-8') as f:
            watchlist_data = json.load(f)
            WATCH_SYMBOLS = watchlist_data.get('symbols', [])
            print(f"[OK] {len(WATCH_SYMBOLS)} symboles charges depuis watchlist.json")
    else:
        WATCH_SYMBOLS = [
            "BTCUSDT", "ETHUSDT", "BNBUSDT", "SOLUSDT", "ADAUSDT", "DOGEUSDT"
        ]
        print(f"[WARN] watchlist.json introuvable, utilisation de {len(WATCH_SYMBOLS)} symboles par defaut")
except Exception as e:
    WATCH_SYMBOLS = [
        "BTCUSDT", "ETHUSDT", "BNBUSDT", "SOLUSDT", "ADAUSDT", "DOGEUSDT"
    ]
    print(f"[ERROR] Erreur chargement watchlist: {e}")
