mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
types: reformat account usd cal expression
This commit is contained in:
parent
91f26cc501
commit
c8ba2e59e3
|
@ -93,13 +93,12 @@ func (m AssetMap) SlackAttachment() slack.Attachment {
|
|||
a.Total.Float64(),
|
||||
USD.FormatMoneyFloat64(a.InUSD.Float64()),
|
||||
BTC.FormatMoneyFloat64(a.InBTC.Float64()),
|
||||
math.Round(a.InUSD.Div(totalUSD).Float64() * 100.0),
|
||||
math.Round(a.InUSD.Div(totalUSD).Float64()*100.0),
|
||||
),
|
||||
Short: false,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
return slack.Attachment{
|
||||
Title: fmt.Sprintf("Net Asset Value %s (≈ %s)",
|
||||
USD.FormatMoneyFloat64(totalUSD.Float64()),
|
||||
|
|
Loading…
Reference in New Issue
Block a user