Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion freqtrade/exchange/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,7 @@ def get_balances(self) -> CcxtBalances:
balances.pop("total", None)
balances.pop("used", None)

self._log_exchange_response("fetch_balances", balances)
self._log_exchange_response("fetch_balance", balances)
return balances
except ccxt.DDoSProtection as e:
raise DDosProtection(e) from e
Expand Down
4 changes: 2 additions & 2 deletions freqtrade/exchange/kraken.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_balances(self) -> CcxtBalances:
balances.pop("free", None)
balances.pop("total", None)
balances.pop("used", None)
self._log_exchange_response("fetch_balances", balances)
self._log_exchange_response("fetch_balance", balances)

# Consolidate balances
balances = self.consolidate_balances(balances)
Expand All @@ -104,7 +104,7 @@ def get_balances(self) -> CcxtBalances:
balances[bal]["used"] = sum(order[1] for order in order_list if order[0] == bal)
balances[bal]["free"] = balances[bal]["total"] - balances[bal]["used"]

self._log_exchange_response("fetch_balances2", balances)
self._log_exchange_response("fetch_balance2", balances)
return balances
except ccxt.DDoSProtection as e:
raise DDosProtection(e) from e
Expand Down
4 changes: 2 additions & 2 deletions freqtrade/plot/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def init_plotscript(config, markets: list, startup_candles: int = 0):
)

no_trades = False
filename = config.get("exportfilename")
filename = config.get("exportfilename") or config.get("exportdirectory")
if config.get("no_trades", False):
no_trades = True
elif config["trade_source"] == "file":
if not filename.is_dir() and not filename.is_file():
if not filename or (not filename.is_dir() and not filename.is_file()):
logger.warning("Backtest file is missing skipping trades.")
no_trades = True
try:
Expand Down
Loading