from market_regime import MarketRegimeDetector

detector = MarketRegimeDetector()
regime, config = detector.detect_regime(force_update=True)

print(f'\n=== RÉGIME: {regime} ===')
print(f'Score global: {detector.market_data["global_score"]}')

print(f'\nBTC:')
print(f'  Mom3h={detector.market_data["btc"]["momentum_3h"]:.2f}%')
print(f'  Mom5h={detector.market_data["btc"]["momentum_5h"]:.2f}%')
print(f'  Mom24h={detector.market_data["btc"]["momentum_24h"]:.2f}%')
print(f'  Score BTC={detector.market_data["btc"]["sentiment_score"]}')

print(f'\nAltcoins:')
print(f'  Mom3h={detector.market_data["altcoins"]["avg_momentum_3h"]}%')
print(f'  Mom5h={detector.market_data["altcoins"]["avg_momentum_5h"]}%')
print(f'  Mom24h={detector.market_data["altcoins"]["avg_momentum"]}%')
print(f'  Weighted={detector.market_data["altcoins"]["weighted_momentum"]}%')
print(f'  Score Altcoins={detector.market_data["altcoins"]["altcoin_score"]}')
print(f'  Bullish={detector.market_data["altcoins"]["bullish_pct"]}%')
