|
|
@ -409,6 +409,8 @@ class Money(util.Base):
|
|
|
|
if asset == "XMR":
|
|
|
|
if asset == "XMR":
|
|
|
|
amount_crypto = contact["data"]["amount_xmr"]
|
|
|
|
amount_crypto = contact["data"]["amount_xmr"]
|
|
|
|
history = self.cg.get_coin_history_by_id(id="monero", date=date_formatted)
|
|
|
|
history = self.cg.get_coin_history_by_id(id="monero", date=date_formatted)
|
|
|
|
|
|
|
|
if "market_data" not in history:
|
|
|
|
|
|
|
|
return False
|
|
|
|
crypto_usd = float(history["market_data"]["current_price"]["usd"])
|
|
|
|
crypto_usd = float(history["market_data"]["current_price"]["usd"])
|
|
|
|
elif asset == "BTC":
|
|
|
|
elif asset == "BTC":
|
|
|
|
amount_crypto = contact["data"]["amount_btc"]
|
|
|
|
amount_crypto = contact["data"]["amount_btc"]
|
|
|
|