1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
This commit is contained in:
Andrew 2018-06-10 02:29:49 +03:00
parent 71364c92f8
commit 6b515d8d51

View File

@ -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
}