mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix
This commit is contained in:
parent
71364c92f8
commit
6b515d8d51
@ -58,9 +58,9 @@ func contentFrom(positions *AllPositionsResponse) string {
|
||||
colorForChange = colorDrop
|
||||
}
|
||||
totalFiat += positions.PositionList[i].HoldingValueFiat
|
||||
res = res + fmt.Sprintf("[%s]%6s - %5.2f ([%s]%.2fk [%s]%.2f%)\n", colorName, positions.PositionList[i].Coin, positions.PositionList[i].Quantity, colorForChange, positions.PositionList[i].HoldingValueFiat/1000, colorForChange, positions.PositionList[i].TwentyFourHourPercentChangeFiat)
|
||||
res = res + fmt.Sprintf("[%s]%6s - %5.2f ([%s]%.2fk [%s]%.2f%s)\n", colorName, positions.PositionList[i].Coin, positions.PositionList[i].Quantity, colorForChange, positions.PositionList[i].HoldingValueFiat/1000, colorForChange, positions.PositionList[i].TwentyFourHourPercentChangeFiat, "%")
|
||||
}
|
||||
res = res + fmt.Sprintf("\n[%s]Total value: $%.2f", "green", totalFiat/1000)
|
||||
res = res + fmt.Sprintf("\n[%s]Total value: $%.2fk", "green", totalFiat/1000)
|
||||
|
||||
return res
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user