forked from jesse-ai/jesse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_exchanges.py
More file actions
44 lines (35 loc) · 1.49 KB
/
test_exchanges.py
File metadata and controls
44 lines (35 loc) · 1.49 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
"""
Test available exchanges including CustomCSV
"""
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'jesse'))
def test_exchanges():
"""Test available exchanges"""
print("🧪 Тест доступных exchanges")
print("=" * 40)
try:
# Set Jesse project directory
os.chdir('/Users/alxy/Desktop/1PROJ/JesseLocal/project-template')
print(f" 📊 Рабочая директория: {os.getcwd()}")
from jesse.modes.import_candles_mode.drivers import driver_names
from jesse.enums import exchanges
print("1️⃣ Импорт driver_names и exchanges... ✅")
print(f"\n2️⃣ Доступные exchanges ({len(driver_names)}):")
for i, exchange in enumerate(driver_names, 1):
print(f" {i:2d}. {exchange}")
# Check if CustomCSV is in the list
if exchanges.CUSTOM_CSV in driver_names:
print(f"\n✅ CustomCSV найден в списке: {exchanges.CUSTOM_CSV}")
else:
print(f"\n❌ CustomCSV НЕ найден в списке")
print(f" Ищем: {exchanges.CUSTOM_CSV}")
print(f" В списке: {driver_names}")
print("\n🎉 Тест завершен!")
except Exception as e:
print(f"\n❌ Ошибка: {e}")
import traceback
traceback.print_exc()
if __name__ == "__main__":
test_exchanges()