func (o *GetPrivateCancelAllByCurrencyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
	if err := r.SetTimeout(o.timeout); err != nil {
		return err
	}
	var res []error
	qrCurrency := o.Currency
	qCurrency := qrCurrency
	if qCurrency != "" {
		if err := r.SetQueryParam("currency", qCurrency); err != nil {
			return err
		}
	}
	if o.Kind != nil {
		var qrKind string
		if o.Kind != nil {
			qrKind = *o.Kind
		}
		qKind := qrKind
		if qKind != "" {
			if err := r.SetQueryParam("kind", qKind); 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"
	strfmt "github.com/go-openapi/strfmt"
)
func NewGetPrivateCancelAllByCurrencyParams() *GetPrivateCancelAllByCurrencyParams {
	var ()
	return &GetPrivateCancelAllByCurrencyParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateCancelAllByCurrencyParamsWithTimeout(timeout time.Duration) *GetPrivateCancelAllByCurrencyParams {
	var ()
	return &GetPrivateCancelAllByCurrencyParams{
		timeout: timeout,
	}
}
func NewGetPrivateCancelAllByCurrencyParamsWithContext(ctx context.Context) *GetPrivateCancelAllByCurrencyParams {
	var ()
	return &GetPrivateCancelAllByCurrencyParams{
		Context: ctx,
	}
}
func NewGetPrivateCancelAllByCurrencyParamsWithHTTPClient(client *http.Client) *GetPrivateCancelAllByCurrencyParams {
	var ()
	return &GetPrivateCancelAllByCurrencyParams{
		HTTPClient: client,
	}
}
type GetPrivateCancelAllByCurrencyParams struct {
	Currency string
	Kind *string
	Type *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateCancelAllByCurrencyParams) WithTimeout(timeout time.Duration) *GetPrivateCancelAllByCurrencyParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateCancelAllByCurrencyParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateCancelAllByCurrencyParams) WithContext(ctx context.Context) *GetPrivateCancelAllByCurrencyParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateCancelAllByCurrencyParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateCancelAllByCurrencyParams) WithHTTPClient(client *http.Client) *GetPrivateCancelAllByCurrencyParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateCancelAllByCurrencyParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateCancelAllByCurrencyParams) WithCurrency(currency string) *GetPrivateCancelAllByCurrencyParams {
	o.SetCurrency(currency)
	return o
}
func (o *GetPrivateCancelAllByCurrencyParams) SetCurrency(currency string) {
	o.Currency = currency
}
func (o *GetPrivateCancelAllByCurrencyParams) WithKind(kind *string) *GetPrivateCancelAllByCurrencyParams {
	o.SetKind(kind)
	return o
}
func (o *GetPrivateCancelAllByCurrencyParams) SetKind(kind *string) {
	o.Kind = kind
}
func (o *GetPrivateCancelAllByCurrencyParams) WithType(typeVar *string) *GetPrivateCancelAllByCurrencyParams {
	o.SetType(typeVar)
	return o
}
func (o *GetPrivateCancelAllByCurrencyParams) SetType(typeVar *string) {
	o.Type = typeVar
}