File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ pair = "BTC/USD"
10
10
symbol = "XBTUSD"
11
11
12
12
# bot properties
13
+ net_deposits_in_base_currency = 0
13
14
daily_report = True
14
15
trade_report = True
15
16
short_in_percent = 50
Original file line number Diff line number Diff line change @@ -38,13 +38,14 @@ def __init__(self):
38
38
39
39
try :
40
40
props = config ['config' ]
41
- self .bot_version = '0.7.20 '
41
+ self .bot_version = '0.8.0 '
42
42
self .exchange = str (props ['exchange' ]).strip ('"' ).lower ()
43
43
self .api_key = str (props ['api_key' ]).strip ('"' )
44
44
self .api_secret = str (props ['api_secret' ]).strip ('"' )
45
45
self .test = bool (str (props ['test' ]).strip ('"' ).lower () == 'true' )
46
46
self .pair = str (props ['pair' ]).strip ('"' )
47
47
self .symbol = str (props ['symbol' ]).strip ('"' )
48
+ self .net_deposits_in_base_currency = abs (float (props ['net_deposits_in_base_currency' ]))
48
49
self .leverage_default = abs (float (props ['leverage_default' ]))
49
50
self .apply_leverage = bool (str (props ['apply_leverage' ]).strip ('"' ).lower () == 'true' )
50
51
self .daily_report = bool (str (props ['daily_report' ]).strip ('"' ).lower () == 'true' )
@@ -576,6 +577,8 @@ def get_net_deposits():
576
577
Get deposits and withdraws to calculate the net deposits in crypto.
577
578
return: net deposits
578
579
"""
580
+ if CONF .net_deposits_in_base_currency :
581
+ return CONF .net_deposits_in_base_currency
579
582
try :
580
583
currency = CONF .base if CONF .base != 'BTC' else 'XBt'
581
584
if CONF .exchange == 'bitmex' :
Original file line number Diff line number Diff line change @@ -1059,6 +1059,7 @@ def create_default_conf():
1059
1059
conf .symbol = 'XBTEUR'
1060
1060
conf .base = 'BTC'
1061
1061
conf .quote = 'EUR'
1062
+ conf .net_deposits_in_base_currency = 0
1062
1063
conf .satoshi_factor = 0.00000001
1063
1064
conf .bot_version = '0.0.1'
1064
1065
conf .leverage_default = 2
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ pair = "BTC/USD"
10
10
symbol = "XBTUSD"
11
11
12
12
# bot properties
13
+ net_deposits_in_base_currency = 0
13
14
daily_report = True
14
15
trade_report = True
15
16
short_in_percent = 50
You can’t perform that action at this time.
0 commit comments