Skip to content

Commit d684a40

Browse files
committed
Print number of shares and free float
1 parent 3789428 commit d684a40

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

reports/format.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const (
1515
DEFAULT = iota + 1
1616

1717
// Number format
18+
GENERAL
1819
NUMBER
1920
INDEX
2021
PERCENT

reports/reports.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,11 @@ func metricsList(v map[uint32]float32) (metrics []metric) {
496496

497497
{"Proventos", proventos, NUMBER},
498498
{"Payout", zeroIfNeg(safeDiv(proventos, v[p.LucLiq])), PERCENT},
499+
500+
{"", 0, EMPTY},
501+
502+
{"Total de Ações", safeDiv(v[p.Shares], v[p.FreeFloat]/100), GENERAL},
503+
{"Free Float", v[p.FreeFloat] / 100, PERCENT},
499504
}
500505
}
501506

0 commit comments

Comments
 (0)