aureon-os / scripts /python /quick_test.py
GaryLeckey's picture
Deploy Aureon OS (deploy/selfhost stack: nginx edge + fusion API x2 + console + HNC organ + redis + postgres; paper mode) (part 19)
da0ce7b verified
Raw History Blame Contribute Delete
2.02 kB
#!/usr/bin/env python3
"""
πŸ”§ QUICK TEST - Verify all systems working
"""
from aureon_baton_link import link_system as _baton_link; _baton_link(__name__)
import os
import sys
print("Testing imports and system readiness...\n")
# Test 1: Binance
try:
from binance.client import Client
print("βœ… python-binance installed")
except ImportError:
print("❌ python-binance NOT installed")
sys.exit(1)
# Test 2: Krakenex
try:
import krakenex
print("βœ… krakenex installed")
except ImportError:
print("❌ krakenex NOT installed")
sys.exit(1)
# Test 3: Load env
try:
from dotenv import load_dotenv
load_dotenv()
print("βœ… python-dotenv installed")
except ImportError:
print("❌ python-dotenv NOT installed")
sys.exit(1)
# Test 4: Check API keys
binance_key = os.getenv('BINANCE_API_KEY')
if binance_key:
print(f"βœ… BINANCE_API_KEY configured")
else:
print("❌ BINANCE_API_KEY missing from .env")
sys.exit(1)
# Test 5: Try Binance connection
try:
binance_secret = os.getenv('BINANCE_API_SECRET')
client = Client(binance_key, binance_secret)
account = client.get_account()
print("βœ… Binance connection successful")
# Show balances
balances = account['balances']
usdt = next((b for b in balances if b['asset'] == 'USDT'), None)
usdc = next((b for b in balances if b['asset'] == 'USDC'), None)
if usdt or usdc:
if usdt:
free = float(usdt['free'])
print(f" πŸ’° USDT: ${free:.2f} available")
if usdc:
free = float(usdc['free'])
print(f" πŸ’° USDC: ${free:.2f} available")
else:
print(" ⚠️ No USDT/USDC balance found")
except Exception as e:
print(f"❌ Binance connection failed: {e}")
sys.exit(1)
print("\n" + "="*50)
print("βœ… ALL SYSTEMS OPERATIONAL")
print("="*50)
print("\nReady to run: python3 aureon_unified_ecosystem.py\n")