🎯 v2.1.4 - OCO Per-Symbol Limits + Commissions Fix
🎯 FEATURE MAJEURE - LIMITES OCO PAR SYMBOL
🚨 DÉCOUVERTE IMPORTANTE
- Votre bot fonctionne parfaitement: 11 OCO répartis sur différents symbols = NORMAL ✅
- Stratégie multi-cryptos: Totalement viable avec 5 OCO max par crypto
✅ NOUVELLES FONCTIONNALITÉS
🔧 Gestion Intelligente des Limites
# Nouvelle méthode de vérification
def can_place_oco_order(symbol):
# Vérifie limite spécifique au symbol (5 max)
# Fallback automatique vers LIMIT si limite atteinte
# Dans execute_sell_order_with_stop_loss():
if not self.can_place_oco_order(symbol):
# Bascule automatiquement en ordre LIMIT
use_oco_orders = False📊 Statistiques Avancées
- OCO par symbol: Affichage détaillé des limites par crypto
- Status visuel: ✅ OK / 🚫 Limite atteinte
- Monitoring proactif: Alertes avant saturation
🔧 CORRECTIONS TECHNIQUES
💰 Commissions Bulletproof
- Fallback get_my_trades(): Pour ordres anciens sans fills
- Context manager fix: Plus d'erreur DatabaseManager.conn
- Timestamp correction: order_time défini correctement
🎯 Optimisations
- Logs enrichis: Détail des limites par symbol
- Gestion d'erreurs: Fallbacks robustes partout
- Performance: Requêtes optimisées par symbol
📊 RÉSULTATS IMMÉDIATS
Avant v2.1.4:
❌ Erreur MAX_NUM_ALGO_ORDERS mystérieuse
❌ Commissions à 0 sur ordres anciens
❌ Pas de visibilité sur limites par symbol
Après v2.1.4:
✅ 5 OCO par symbol respectés automatiquement
✅ Fallback LIMIT si limite atteinte
✅ Commissions exactes via get_my_trades
✅ Monitoring détaillé par crypto
🎯 IMPACT STRATÉGIQUE
- 🪙 Multi-crypto viable: 11 cryptos × 5 OCO chacune = 55 OCO max théorique!
- ⚡ Rotation intelligente: Priorité aux cryptos les plus actives
- 🛡️ Robustesse: Aucun plantage sur limites Binance
- 📈 Performance: Commissions exactes pour analytics précis
⚡ MISE À JOUR RECOMMANDÉE
git pull origin main
git checkout v2.1.4
# Redémarrez - Gestion OCO par symbol active !*🎯 RELEASE MAJEURE - Compréhension complète des limites Binance pull
*Votre stratégie multi-cryptos est maintenant parfaitement optimisée pull 🚀