func (o *GetPrivateGetOrderMarginByIdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	valuesIds := o.Ids
	joinedIds := swag.JoinByFormat(valuesIds, "multi")
	if err := r.SetQueryParam("ids", joinedIds...); err != nil {
		return err
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
WriteToRequest writes these params to a swagger request
package operations
import (
	"context"
	"net/http"
	"time"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	cr "github.com/go-openapi/runtime/client"
	"github.com/go-openapi/swag"
	strfmt "github.com/go-openapi/strfmt"
)
func NewGetPrivateGetOrderMarginByIdsParams() *GetPrivateGetOrderMarginByIdsParams {
	var ()
	return &GetPrivateGetOrderMarginByIdsParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateGetOrderMarginByIdsParamsWithTimeout(timeout time.Duration) *GetPrivateGetOrderMarginByIdsParams {
	var ()
	return &GetPrivateGetOrderMarginByIdsParams{
		timeout: timeout,
	}
}
func NewGetPrivateGetOrderMarginByIdsParamsWithContext(ctx context.Context) *GetPrivateGetOrderMarginByIdsParams {
	var ()
	return &GetPrivateGetOrderMarginByIdsParams{
		Context: ctx,
	}
}
func NewGetPrivateGetOrderMarginByIdsParamsWithHTTPClient(client *http.Client) *GetPrivateGetOrderMarginByIdsParams {
	var ()
	return &GetPrivateGetOrderMarginByIdsParams{
		HTTPClient: client,
	}
}
type GetPrivateGetOrderMarginByIdsParams struct {
	Ids []string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateGetOrderMarginByIdsParams) WithTimeout(timeout time.Duration) *GetPrivateGetOrderMarginByIdsParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateGetOrderMarginByIdsParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateGetOrderMarginByIdsParams) WithContext(ctx context.Context) *GetPrivateGetOrderMarginByIdsParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateGetOrderMarginByIdsParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateGetOrderMarginByIdsParams) WithHTTPClient(client *http.Client) *GetPrivateGetOrderMarginByIdsParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateGetOrderMarginByIdsParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateGetOrderMarginByIdsParams) WithIds(ids []string) *GetPrivateGetOrderMarginByIdsParams {
	o.SetIds(ids)
	return o
}
func (o *GetPrivateGetOrderMarginByIdsParams) SetIds(ids []string) {
	o.Ids = ids
}