mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
optimize max submit order api priority
This commit is contained in:
parent
f20e809940
commit
291fdbaf25
|
@ -406,7 +406,7 @@ func (e *Exchange) Withdrawal(ctx context.Context, asset string, amount fixedpoi
|
|||
}
|
||||
|
||||
func (e *Exchange) SubmitOrders(ctx context.Context, orders ...types.SubmitOrder) (createdOrders types.OrderSlice, err error) {
|
||||
if len(orders) <= 10 {
|
||||
if len(orders) > 1 && len(orders) < 15 {
|
||||
var ordersBySymbol = map[string][]maxapi.Order{}
|
||||
for _, o := range orders {
|
||||
maxOrder, err := toMaxSubmitOrder(o)
|
||||
|
|
Loading…
Reference in New Issue
Block a user