-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_simple.py
More file actions
29 lines (23 loc) · 859 Bytes
/
test_simple.py
File metadata and controls
29 lines (23 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
"""
Script simple para probar la aplicación
"""
print("🚀 Probando aplicación...")
try:
import app
print("✅ App importada correctamente")
print(f"✅ Exchanges configurados: {list(app.API_KEYS.keys())}")
# Probar función NotBank
from api_client import get_notbank_balance
# Con datos mock
balance = get_notbank_balance("notbank_key", "notbank_secret", "123", "456")
if balance:
print(f"✅ NotBank funciona: {len(balance)} monedas")
print(f" Ejemplo: BTC={balance.get('BTC', 0)}, USD={balance.get('USD', 0)}")
print("✅ ¡Aplicación lista!")
print("✅ Ejecuta: .venv\\Scripts\\python.exe app.py")
print("✅ Luego abre: http://localhost:5001")
except Exception as e:
print(f"❌ Error: {e}")
import traceback
traceback.print_exc()