diff --git a/core/lib/market.py b/core/lib/market.py index e7d6822..9fcdfa2 100644 --- a/core/lib/market.py +++ b/core/lib/market.py @@ -104,9 +104,12 @@ def get_trade_size_in_base(direction, account, strategy, cash_balance, base): log.debug(f"Trade size: {amount_fiat}") # Convert the trade size to the base currency - trade_size_in_base = to_currency( - direction, account, amount_fiat, account.currency, base - ) + if account.currency.lower() == base.lower(): + trade_size_in_base = amount_fiat + else: + trade_size_in_base = to_currency( + direction, account, amount_fiat, account.currency, base + ) log.debug(f"Trade size in base: {trade_size_in_base}") return trade_size_in_base