mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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().
|
||||
Market(maxOrder.Market).
|
||||
Side(maxOrder.Side).
|
||||
Volume(maxOrder.Volume).
|
||||
OrderType(string(maxOrder.OrderType))
|
||||
|
||||
if len(maxOrder.ClientOID) > 0 {
|
||||
req.ClientOrderID(maxOrder.ClientOID)
|
||||
}
|
||||
|
||||
if len(maxOrder.Volume) > 0 {
|
||||
req.Volume(maxOrder.Volume)
|
||||
}
|
||||
|
||||
if len(maxOrder.Price) > 0 {
|
||||
req.Price(maxOrder.Price)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user