mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-02 18:25:21 +00:00
price_at_timestamp: minor fix
This commit is contained in:
parent
151aa9d135
commit
8329faf760
1 changed files with 1 additions and 1 deletions
|
@ -1704,7 +1704,7 @@ class Abstract_Wallet(PrintError):
|
||||||
|
|
||||||
def price_at_timestamp(self, txid, price_func):
|
def price_at_timestamp(self, txid, price_func):
|
||||||
height, conf, timestamp = self.get_tx_height(txid)
|
height, conf, timestamp = self.get_tx_height(txid)
|
||||||
return price_func(timestamp)
|
return price_func(timestamp if timestamp else time.time())
|
||||||
|
|
||||||
def unrealized_gains(self, domain, price_func, ccy):
|
def unrealized_gains(self, domain, price_func, ccy):
|
||||||
coins = self.get_utxos(domain)
|
coins = self.get_utxos(domain)
|
||||||
|
|
Loading…
Add table
Reference in a new issue