forked from garagesteve1155/PowerTrader_AI
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPowerTrader.bat
More file actions
48 lines (45 loc) · 1.35 KB
/
Copy pathPowerTrader.bat
File metadata and controls
48 lines (45 loc) · 1.35 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
45
46
47
48
@echo off
title PowerTrader AI
cd /d "%~dp0"
:: Check if Python is available
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo ============================================
echo Python was not found on your system!
echo Please install Python 3.10+ from:
echo https://www.python.org/downloads/
echo Make sure to check "Add Python to PATH"
echo ============================================
pause
exit /b 1
)
:: Check if dependencies are installed by trying a quick import
python -c "import requests, psutil, matplotlib, colorama, binance, kucoin" >nul 2>&1
if %errorlevel% neq 0 (
echo Dependencies not found. Installing now...
echo.
python -m pip install -r requirements.txt
if %errorlevel% neq 0 (
echo.
echo ============================================
echo Failed to install dependencies!
echo Try running Install_Dependencies.bat
echo as Administrator.
echo ============================================
pause
exit /b 1
)
echo.
echo Dependencies installed successfully!
echo.
)
echo ============================================
echo Starting PowerTrader AI Hub...
echo ============================================
echo.
python pt_hub.py
if %errorlevel% neq 0 (
echo.
echo PowerTrader AI exited with an error.
pause
)