mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
max: no need to check order volume separately
This commit is contained in:
parent
fdf1ee9258
commit
8c3992d514
|
@ -459,16 +459,13 @@ func (e *Exchange) SubmitOrders(ctx context.Context, orders ...types.SubmitOrder
|
||||||
req := e.client.OrderService.NewCreateOrderRequest().
|
req := e.client.OrderService.NewCreateOrderRequest().
|
||||||
Market(maxOrder.Market).
|
Market(maxOrder.Market).
|
||||||
Side(maxOrder.Side).
|
Side(maxOrder.Side).
|
||||||
|
Volume(maxOrder.Volume).
|
||||||
OrderType(string(maxOrder.OrderType))
|
OrderType(string(maxOrder.OrderType))
|
||||||
|
|
||||||
if len(maxOrder.ClientOID) > 0 {
|
if len(maxOrder.ClientOID) > 0 {
|
||||||
req.ClientOrderID(maxOrder.ClientOID)
|
req.ClientOrderID(maxOrder.ClientOID)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(maxOrder.Volume) > 0 {
|
|
||||||
req.Volume(maxOrder.Volume)
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(maxOrder.Price) > 0 {
|
if len(maxOrder.Price) > 0 {
|
||||||
req.Price(maxOrder.Price)
|
req.Price(maxOrder.Price)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user