Skip to content

Commit

Permalink
[Kucoin] fix parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Dec 26, 2024
1 parent d19bb3d commit bae03af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Trading/Exchange/kucoin/kucoin_exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def fix_order(self, raw, symbol=None, **kwargs):
fixed = super().fix_order(raw, symbol=symbol, **kwargs)
self._ensure_fees(fixed)
if self.connector.exchange_manager.is_future and \
fixed[trading_enums.ExchangeConstantsOrderColumns.COST.value] is not None:
fixed.get(trading_enums.ExchangeConstantsOrderColumns.COST.value) is not None:
fixed[trading_enums.ExchangeConstantsOrderColumns.COST.value] = \
fixed[trading_enums.ExchangeConstantsOrderColumns.COST.value] * \
float(raw_order_info.get(self.KUCOIN_LEVERAGE, 1))
Expand Down

0 comments on commit bae03af

Please sign in to comment.