forked from mr-pepsss/BYBIT-AIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
46 lines (31 loc) · 919 Bytes
/
main.py
File metadata and controls
46 lines (31 loc) · 919 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
import subprocess
import sys
def run_balance_case():
subprocess.run([sys.executable, 'cases/balance.py'])
def run_collect_case():
subprocess.run([sys.executable, 'cases/collect.py'])
def run_market_trade_case():
subprocess.run([sys.executable, 'cases/market_trade.py'])
def main():
while True:
print("Choice your case:")
print("1. Show balance")
print("2. Collect to Main")
print("3. Trade market")
print("0. Exit")
choice = input("Input your choice: ")
if choice == '1':
run_balance_case()
elif choice == '2':
run_collect_case()
elif choice == '3':
run_market_trade_case()
elif choice == '0':
break
else:
print("Incorrect choice. Try again")
print("")
print("App was stopped\n")
if __name__ == "__main__":
main()