func (p *OrderClient) PlaceOrders(request []order.PlaceOrderRequest) (*order.PlaceOrdersResponse, error) {
	postBody, jsonErr := model.ToJson(request)
	url := p.privateUrlBuilder.Build("POST", "/v1/order/batch-orders", nil)
	postResp, postErr := internal.HttpPost(url, string(postBody))
	if postErr != nil {
		return nil, postErr
	}
	result := order.PlaceOrdersResponse{}
	jsonErr = json.Unmarshal([]byte(postResp), &result)
	if jsonErr != nil {
		return nil, jsonErr
	}
	return &result, nil
}
Place multipler orders (at most 10 orders)
package client
import (
	"encoding/json"
	"fmt"
	"github.com/huobirdcenter/huobi_golang/internal"
	"github.com/huobirdcenter/huobi_golang/internal/requestbuilder"
	"github.com/huobirdcenter/huobi_golang/pkg/model"
	"github.com/huobirdcenter/huobi_golang/pkg/model/order"
)
type OrderClient struct {
	privateUrlBuilder *requestbuilder.PrivateUrlBuilder
}
func (p *OrderClient) Init(accessKey string, secretKey string, host string) *OrderClient {
	p.privateUrlBuilder = new(requestbuilder.PrivateUrlBuilder).Init(accessKey, secretKey, host)
	return p
}
func (p *OrderClient) PlaceOrder(request *order.PlaceOrderRequest) (*order.PlaceOrderResponse, error) {
	postBody, jsonErr := model.ToJson(request)
	url := p.privateUrlBuilder.Build("POST", "/v1/order/orders/place", nil)
	postResp, postErr := internal.HttpPost(url, postBody)
	if postErr != nil {
		return nil, postErr
	}
	result := order.PlaceOrderResponse{}
	jsonErr = json.Unmarshal([]byte(postResp), &result)
	if jsonErr != nil {
		return nil, jsonErr
	}
	return &result, nil
}