max: use precision -1 to trim zeros

This commit is contained in:
c9s 2021-06-09 03:06:07 +08:00
parent a8eda62a8d
commit fdf1ee9258

View File

@ -359,7 +359,7 @@ func toMaxSubmitOrder(o types.SubmitOrder) (*maxapi.Order, error) {
if o.Market.Symbol != "" {
priceInString = o.Market.FormatPrice(o.StopPrice)
} else {
priceInString = strconv.FormatFloat(o.StopPrice, 'f', 8, 64)
priceInString = strconv.FormatFloat(o.StopPrice, 'f', -1, 64)
}
}