-
Notifications
You must be signed in to change notification settings - Fork 120
/
main.py
50 lines (49 loc) · 2 KB
/
main.py
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
49
50
import subprocess
import time
import sys
import os
from colorama import Style, init, Fore
init()
from exchange_config import *
sys.stdin.reconfigure(encoding="utf-8")
sys.stdout.reconfigure(encoding="utf-8")
print("""
█▄▄ ▄▀█ █▀█ █▄▄ █▀█ ▀█▀ █ █▄░█ █▀▀ ▄▀█ █▀█ █▄▄ █ ▀█▀ █▀█ ▄▀█ █▀▀ █▀▀ █▀ █▄█ █▀ ▀█▀ █▀▀ █▀▄▀█
█▄█ █▀█ █▀▄ █▄█ █▄█ ░█░ █ █░▀█ ██▄ █▀█ █▀▄ █▄█ █ ░█░ █▀▄ █▀█ █▄█ ██▄ ▄█ ░█░ ▄█ ░█░ ██▄ █░▀░█""")
print(f" \n{Fore.BLUE}{Style.BRIGHT}DEMO VERSION{Style.RESET_ALL}\n \nnelsorex\nTwitter: @nelsorex\nDiscord: nelsorex\n")
args = sys.argv
mode = args[1]
if renewal:
balance = args[3]
symbol=args[4]
renew=args[2]
ex_list=args[5]
else:
balance = args[2]
symbol=args[3]
renew="525600"
ex_list=args[4]
i=0
with open(f"start_balance.txt","w") as f:
f.write(balance)
with open(f"balance.txt","w") as f:
f.write(balance)
while True:
if i>=1 and p.returncode==1:
sys.exit(1)
if mode == "fake-money":
p=subprocess.run([how_do_you_usually_launch_python,"bot-fake-money.py",symbol,balance,renew,symbol,ex_list])
with open(f"balance.txt") as f:
balance=f.read()
elif mode == "classic":
p=subprocess.run([how_do_you_usually_launch_python,"bot-classic.py",symbol,balance,renew,symbol,ex_list])
with open(f"balance.txt") as f:
balance=f.read()
elif mode == "delta-neutral":
p=subprocess.run([how_do_you_usually_launch_python,"bot-delta-neutral.py",symbol,balance,renew,symbol,ex_list])
with open(f"balance.txt") as f:
balance=f.read()
else:
print(f"Mode input is incorrect.")
sys.exit(1)
i+=1