mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
support: fix quantity formatting
This commit is contained in:
parent
b9584117d6
commit
b60fd9e356
|
@ -197,6 +197,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
||||||
takerBuyBaseVolumeThreshold,
|
takerBuyBaseVolumeThreshold,
|
||||||
s.TakerBuyRatio.Float64(),
|
s.TakerBuyRatio.Float64(),
|
||||||
)
|
)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -255,7 +256,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
||||||
|
|
||||||
s.Notify("Submitting %s market order buy with quantity %f according to the base volume %f, taker buy base volume %f",
|
s.Notify("Submitting %s market order buy with quantity %f according to the base volume %f, taker buy base volume %f",
|
||||||
s.Symbol,
|
s.Symbol,
|
||||||
quantity,
|
quantity.Float64(),
|
||||||
kline.Volume,
|
kline.Volume,
|
||||||
kline.TakerBuyBaseAssetVolume)
|
kline.TakerBuyBaseAssetVolume)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user