Skip to content

Commit

Permalink
[CCXT] fix default value in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Dec 1, 2024
1 parent 6a8bfb6 commit 603db75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octobot_trading/exchanges/connectors/ccxt/ccxt_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def parse_position(self, fixed, force_empty=False, **kwargs):
):
margin_type = enums.MarginType(margin_type)
if force_empty or liquidation_price is None:
liquidation_price = constants.NaN
liquidation_price = constants.ZERO
else:
liquidation_price = decimal.Decimal(str(liquidation_price))
try:
Expand Down

0 comments on commit 603db75

Please sign in to comment.