1
0

computation of capital gains for outgoing transactions

This commit is contained in:
ThomasV
2018-01-06 12:57:04 +01:00
parent c32435c15e
commit 42a16d9c3e
3 changed files with 52 additions and 0 deletions

View File

@@ -493,3 +493,8 @@ class FxThread(ThreadJob):
def historical_value_str(self, satoshis, d_t):
rate = self.history_rate(d_t)
return self.value_str(satoshis, rate)
def timestamp_rate(self, timestamp):
from electrum.util import timestamp_to_datetime
date = timestamp_to_datetime(timestamp)
return self.history_rate(date)