func (o *GetPrivateBuyParams) WithReduceOnly(reduceOnly *bool) *GetPrivateBuyParams {
	o.SetReduceOnly(reduceOnly)
	return o
}
WithReduceOnly adds the reduceOnly to the get private buy params
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 NewGetPrivateBuyParams() *GetPrivateBuyParams {
	var (
		maxShowDefault     = float64(1)
		postOnlyDefault    = bool(true)
		reduceOnlyDefault  = bool(false)
		timeInForceDefault = string("good_til_cancelled")
	)
	return &GetPrivateBuyParams{
		MaxShow:     &maxShowDefault,
		PostOnly:    &postOnlyDefault,
		ReduceOnly:  &reduceOnlyDefault,
		TimeInForce: &timeInForceDefault,
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateBuyParamsWithTimeout(timeout time.Duration) *GetPrivateBuyParams {
	var (
		maxShowDefault     = float64(1)
		postOnlyDefault    = bool(true)
		reduceOnlyDefault  = bool(false)
		timeInForceDefault = string("good_til_cancelled")
	)
	return &GetPrivateBuyParams{
		MaxShow:     &maxShowDefault,
		PostOnly:    &postOnlyDefault,
		ReduceOnly:  &reduceOnlyDefault,
		TimeInForce: &timeInForceDefault,
		timeout: timeout,
	}
}
func NewGetPrivateBuyParamsWithContext(ctx context.Context) *GetPrivateBuyParams {
	var (
		maxShowDefault     = float64(1)
		postOnlyDefault    = bool(true)
		reduceOnlyDefault  = bool(false)
		timeInForceDefault = string("good_til_cancelled")
	)
	return &GetPrivateBuyParams{
		MaxShow:     &maxShowDefault,
		PostOnly:    &postOnlyDefault,
		ReduceOnly:  &reduceOnlyDefault,
		TimeInForce: &timeInForceDefault,
		Context: ctx,
	}
}
func NewGetPrivateBuyParamsWithHTTPClient(client *http.Client) *GetPrivateBuyParams {
	var (
		maxShowDefault     = float64(1)
		postOnlyDefault    = bool(true)
		reduceOnlyDefault  = bool(false)
		timeInForceDefault = string("good_til_cancelled")
	)
	return &GetPrivateBuyParams{
		MaxShow:     &maxShowDefault,
		PostOnly:    &postOnlyDefault,
		ReduceOnly:  &reduceOnlyDefault,
		TimeInForce: &timeInForceDefault,
		HTTPClient:  client,
	}
}
type GetPrivateBuyParams struct {
	Advanced *string
	Amount float64
	InstrumentName string
	Label *string
	MaxShow *float64
	PostOnly *bool
	Price *float64
	ReduceOnly *bool
	StopPrice *float64
	TimeInForce *string
	Trigger *string
	Type *string
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateBuyParams) WithTimeout(timeout time.Duration) *GetPrivateBuyParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateBuyParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateBuyParams) WithContext(ctx context.Context) *GetPrivateBuyParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateBuyParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateBuyParams) WithHTTPClient(client *http.Client) *GetPrivateBuyParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateBuyParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateBuyParams) WithAdvanced(advanced *string) *GetPrivateBuyParams {
	o.SetAdvanced(advanced)
	return o
}
func (o *GetPrivateBuyParams) SetAdvanced(advanced *string) {
	o.Advanced = advanced
}
func (o *GetPrivateBuyParams) WithAmount(amount float64) *GetPrivateBuyParams {
	o.SetAmount(amount)
	return o
}
func (o *GetPrivateBuyParams) SetAmount(amount float64) {
	o.Amount = amount
}
func (o *GetPrivateBuyParams) WithInstrumentName(instrumentName string) *GetPrivateBuyParams {
	o.SetInstrumentName(instrumentName)
	return o
}
func (o *GetPrivateBuyParams) SetInstrumentName(instrumentName string) {
	o.InstrumentName = instrumentName
}
func (o *GetPrivateBuyParams) WithLabel(label *string) *GetPrivateBuyParams {
	o.SetLabel(label)
	return o
}
func (o *GetPrivateBuyParams) SetLabel(label *string) {
	o.Label = label
}
func (o *GetPrivateBuyParams) WithMaxShow(maxShow *float64) *GetPrivateBuyParams {
	o.SetMaxShow(maxShow)
	return o
}
func (o *GetPrivateBuyParams) SetMaxShow(maxShow *float64) {
	o.MaxShow = maxShow
}
func (o *GetPrivateBuyParams) WithPostOnly(postOnly *bool) *GetPrivateBuyParams {
	o.SetPostOnly(postOnly)
	return o
}
func (o *GetPrivateBuyParams) SetPostOnly(postOnly *bool) {
	o.PostOnly = postOnly
}
func (o *GetPrivateBuyParams) WithPrice(price *float64) *GetPrivateBuyParams {
	o.SetPrice(price)
	return o
}
func (o *GetPrivateBuyParams) SetPrice(price *float64) {
	o.Price = price
}