Skip to content

Commit 1625bd2

Browse files
committed
Fix smell
1 parent e4e8efb commit 1625bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

balancer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def get_margin_balance_of_fiat():
860860
try:
861861
if CONF.exchange == 'bitmex':
862862
pos = get_position_info()
863-
if not pos or not 'markPrice' in pos or not pos['markPrice']:
863+
if not pos or 'markPrice' not in pos or not pos['markPrice']:
864864
return {'total': 0}
865865
return {'total': float(pos['homeNotional']) * float(pos['markPrice'])}
866866
LOG.warning(NOT_IMPLEMENTED_MESSAGE, 'get_margin_balance_of_fiat()', CONF.exchange)

0 commit comments

Comments
 (0)