1
0
This commit is contained in:
ThomasV
2018-02-27 16:00:56 +01:00
parent 51630416fc
commit a3554dc2b7
3 changed files with 9 additions and 11 deletions

View File

@@ -520,6 +520,8 @@ class FxThread(ThreadJob):
return "%s" % (self.ccy_amount_str(value, True))
def history_rate(self, d_t):
if d_t is None:
return Decimal('NaN')
rate = self.exchange.historical_rate(self.ccy, d_t)
# Frequently there is no rate for today, until tomorrow :)
# Use spot quotes in that case