func (o *GetPrivateGetopenordersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	if o.Instrument != nil {
		var qrInstrument string
		if o.Instrument != nil {
			qrInstrument = *o.Instrument
		}
		qInstrument := qrInstrument
		if qInstrument != "" {
			if err := r.SetQueryParam("instrument", qInstrument); err != nil {
				return err
			}
		}
	}
	if o.OrderID != nil {
		var qrOrderID float64
		if o.OrderID != nil {
			qrOrderID = *o.OrderID
		}
		qOrderID := swag.FormatFloat64(qrOrderID)
		if qOrderID != "" {
			if err := r.SetQueryParam("orderId", qOrderID); err != nil {
				return err
			}
		}
	}
	if o.Type != nil {
		var qrType string
		if o.Type != nil {
			qrType = *o.Type
		}
		qType := qrType
		if qType != "" {
			if err := r.SetQueryParam("type", qType); 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 NewGetPrivateGetopenordersParams() *GetPrivateGetopenordersParams {
	var ()
	return &GetPrivateGetopenordersParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateGetopenordersParamsWithTimeout(timeout time.Duration) *GetPrivateGetopenordersParams {
	var ()
	return &GetPrivateGetopenordersParams{
		timeout: timeout,
	}
}
func NewGetPrivateGetopenordersParamsWithContext(ctx context.Context) *GetPrivateGetopenordersParams {
	var ()
	return &GetPrivateGetopenordersParams{
		Context: ctx,
	}
}
func NewGetPrivateGetopenordersParamsWithHTTPClient(client *http.Client) *GetPrivateGetopenordersParams {
	var ()
	return &GetPrivateGetopenordersParams{
		HTTPClient: client,
	}
}
type GetPrivateGetopenordersParams struct {
	Instrument *string
	OrderID *float64
	Type *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateGetopenordersParams) WithTimeout(timeout time.Duration) *GetPrivateGetopenordersParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateGetopenordersParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateGetopenordersParams) WithContext(ctx context.Context) *GetPrivateGetopenordersParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateGetopenordersParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateGetopenordersParams) WithHTTPClient(client *http.Client) *GetPrivateGetopenordersParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateGetopenordersParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateGetopenordersParams) WithInstrument(instrument *string) *GetPrivateGetopenordersParams {
	o.SetInstrument(instrument)
	return o
}
func (o *GetPrivateGetopenordersParams) SetInstrument(instrument *string) {
	o.Instrument = instrument
}
func (o *GetPrivateGetopenordersParams) WithOrderID(orderID *float64) *GetPrivateGetopenordersParams {
	o.SetOrderID(orderID)
	return o
}
func (o *GetPrivateGetopenordersParams) SetOrderID(orderID *float64) {
	o.OrderID = orderID
}
func (o *GetPrivateGetopenordersParams) WithType(typeVar *string) *GetPrivateGetopenordersParams {
	o.SetType(typeVar)
	return o
}
func (o *GetPrivateGetopenordersParams) SetType(typeVar *string) {
	o.Type = typeVar
}