mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
change names
This commit is contained in:
parent
8bfe342772
commit
acbad0a005
1 changed files with 4 additions and 4 deletions
|
@ -1022,16 +1022,16 @@ class Abstract_Wallet(PrintError):
|
||||||
summary = {
|
summary = {
|
||||||
'start_date': format_time(from_timestamp),
|
'start_date': format_time(from_timestamp),
|
||||||
'end_date': format_time(to_timestamp),
|
'end_date': format_time(to_timestamp),
|
||||||
'initial_balance': format_satoshis(init_balance),
|
'start_balance': format_satoshis(init_balance),
|
||||||
'final_balance': format_satoshis(end_balance),
|
'end_balance': format_satoshis(end_balance),
|
||||||
'capital_gains': fx.format_fiat(capital_gains),
|
'capital_gains': fx.format_fiat(capital_gains),
|
||||||
'fiat_income': fx.format_fiat(fiat_income)
|
'fiat_income': fx.format_fiat(fiat_income)
|
||||||
}
|
}
|
||||||
if fx:
|
if fx:
|
||||||
start_date = timestamp_to_datetime(from_timestamp)
|
start_date = timestamp_to_datetime(from_timestamp)
|
||||||
end_date = timestamp_to_datetime(to_timestamp)
|
end_date = timestamp_to_datetime(to_timestamp)
|
||||||
summary['initial_fiat_value'] = fx.format_fiat(fx.historical_value(init_balance, start_date))
|
summary['start_fiat_balance'] = fx.format_fiat(fx.historical_value(init_balance, start_date))
|
||||||
summary['final_fiat_value'] = fx.format_fiat(fx.historical_value(end_balance, end_date))
|
summary['end_fiat_balance'] = fx.format_fiat(fx.historical_value(end_balance, end_date))
|
||||||
out.append(summary)
|
out.append(summary)
|
||||||
|
|
||||||
return out
|
return out
|
||||||
|
|
Loading…
Add table
Reference in a new issue