X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FTrader.git;a=blobdiff_plain;f=portfolio.py;fp=portfolio.py;h=1d291069bfa08c7cb497e90046de010e6d7f2e02;hp=94472a3636de776d0724c6484fd7dbd85c406566;hb=34865e65933da0db778e171fc787eca114ec562d;hpb=a4bb44d8bc27af7c57f439ffd9edca51c2f0afb4 diff --git a/portfolio.py b/portfolio.py index 94472a3..1d29106 100644 --- a/portfolio.py +++ b/portfolio.py @@ -52,7 +52,7 @@ class Amount: ticker=asset_ticker, rate=rate) else: - raise Exception("This asset is not available in the chosen market") + return Amount(other_currency, 0, linked_to=self, ticker=None, rate=0) def as_json(self): return {