prediction about to test

This commit is contained in:
bel
2023-10-27 07:38:09 -06:00
parent 2af03d4e84
commit 086ada530f
3 changed files with 104 additions and 0 deletions

View File

@@ -9,6 +9,15 @@ import (
type Register map[string]Balances
func (register Register) Latest() Balances {
dates := register.Dates()
if len(dates) == 0 {
return nil
}
date := dates[len(dates)-1]
return register[date]
}
func (register Register) WithBPIs(bpis BPIs) Register {
result := make(Register)
for d := range register {