Skip to content

Commit

Permalink
improve error for binance
Browse files Browse the repository at this point in the history
  • Loading branch information
EmersonDove committed Jun 25, 2023
1 parent fc679f8 commit 88d4fa7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def format_account_data(self, interface: PaperTradeInterface, local_time) -> \
quote_value = true_account[self.quote_currency]['available'] + true_account[self.quote_currency]['hold']
except KeyError as e:
raise KeyError(f"Failed looking up {e}. Try changing your quote_account_value_in in backtest.json to be "
f"{e}.")
f"{e}, or try a tether coin in backtest.json like USDT depending on exchange.")
try:
del true_account[self.quote_currency]
except KeyError:
Expand Down

0 comments on commit 88d4fa7

Please sign in to comment.