mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
max: use precision -1 to trim zeros
This commit is contained in:
parent
a8eda62a8d
commit
fdf1ee9258
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user