We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e8efb commit 1625bd2Copy full SHA for 1625bd2
balancer.py
@@ -860,7 +860,7 @@ def get_margin_balance_of_fiat():
860
try:
861
if CONF.exchange == 'bitmex':
862
pos = get_position_info()
863
- if not pos or not 'markPrice' in pos or not pos['markPrice']:
+ if not pos or 'markPrice' not in pos or not pos['markPrice']:
864
return {'total': 0}
865
return {'total': float(pos['homeNotional']) * float(pos['markPrice'])}
866
LOG.warning(NOT_IMPLEMENTED_MESSAGE, 'get_margin_balance_of_fiat()', CONF.exchange)
0 commit comments