Skip to content

Commit 15b91f8

Browse files
committed
[CCXTConnector] make fall back fees work properly
1 parent 2a0be71 commit 15b91f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

octobot_trading/exchanges/connectors/ccxt/ccxt_connector.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -510,13 +510,13 @@ def get_fees(self, symbol):
510510
return {
511511
enums.ExchangeConstantsMarketPropertyColumns.TAKER.value:
512512
market_status.get(enums.ExchangeConstantsMarketPropertyColumns.TAKER.value,
513-
constants.CONFIG_DEFAULT_FEES),
513+
) or constants.CONFIG_DEFAULT_FEES,
514514
enums.ExchangeConstantsMarketPropertyColumns.MAKER.value:
515515
market_status.get(enums.ExchangeConstantsMarketPropertyColumns.MAKER.value,
516-
constants.CONFIG_DEFAULT_FEES),
516+
) or constants.CONFIG_DEFAULT_FEES,
517517
enums.ExchangeConstantsMarketPropertyColumns.FEE.value:
518518
market_status.get(enums.ExchangeConstantsMarketPropertyColumns.FEE.value,
519-
constants.CONFIG_DEFAULT_FEES)
519+
) or constants.CONFIG_DEFAULT_FEES
520520
}
521521
except ccxt.NotSupported:
522522
raise octobot_trading.errors.NotSupported

0 commit comments

Comments
 (0)