mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-19 21:40:24 +00:00
feat: add __repr__ to Wallets object
This commit is contained in:
@@ -52,6 +52,12 @@ class Wallets:
|
||||
self._last_wallet_refresh: datetime | None = None
|
||||
self.update()
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return (
|
||||
f"Wallets(stake_currency={self._stake_currency}, start_cap={self._start_cap}, "
|
||||
f"wallets={len(self._wallets)}, positions={len(self._positions)})"
|
||||
)
|
||||
|
||||
def get_free(self, currency: str) -> float:
|
||||
balance = self._wallets.get(currency)
|
||||
if balance and balance.free:
|
||||
|
||||
Reference in New Issue
Block a user