forked from alex-bormotov/AXE-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.py
47 lines (37 loc) · 1.12 KB
/
demo.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
import sys
from notification import notificator
from licence import check_licence_is_expire
show_error = "YES"
def demo_or_full(stake_per_trade, coin_2):
#return stake_per_trade
stake_demo_btc = 0.03
demo_message = (
"This is DEMO edition :(\n\nLimit for trading "
+ str(stake_demo_btc)
+ " BTC "
+ "\n\n"
+ "In DEMO allowed trading with BTC only"
+ "\n\n"
+ "For get more trade limit and trade other pairs, please, buy Full edition :)"
+ "\n\n"
+ "https://axe-bot.com"
)
try:
if (
coin_2 == "BTC"
and stake_per_trade > stake_demo_btc
and check_licence_is_expire() is True
):
notificator(demo_message)
return stake_demo_btc
if (
coin_2 in "ETH, BNB, XRP, USDT, TUSD, PAX, USDS, USDC"
and check_licence_is_expire() is True
):
notificator(demo_message)
sys.exit()
else:
return stake_per_trade
except Exception as e:
if show_error == "YES":
notificator(str(e))