optimize max submit order api priority

This commit is contained in:
c9s 2021-06-06 10:49:17 +08:00
parent f20e809940
commit 291fdbaf25

View File

@ -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)