func (o *GetPrivateTradehistoryParams) WithEndTimestamp(endTimestamp *int64) *GetPrivateTradehistoryParams {
	o.SetEndTimestamp(endTimestamp)
	return o
}
WithEndTimestamp adds the endTimestamp to the get private tradehistory 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 NewGetPrivateTradehistoryParams() *GetPrivateTradehistoryParams {
	var ()
	return &GetPrivateTradehistoryParams{
		timeout: cr.DefaultTimeout,
	}
}
func NewGetPrivateTradehistoryParamsWithTimeout(timeout time.Duration) *GetPrivateTradehistoryParams {
	var ()
	return &GetPrivateTradehistoryParams{
		timeout: timeout,
	}
}
func NewGetPrivateTradehistoryParamsWithContext(ctx context.Context) *GetPrivateTradehistoryParams {
	var ()
	return &GetPrivateTradehistoryParams{
		Context: ctx,
	}
}
func NewGetPrivateTradehistoryParamsWithHTTPClient(client *http.Client) *GetPrivateTradehistoryParams {
	var ()
	return &GetPrivateTradehistoryParams{
		HTTPClient: client,
	}
}
type GetPrivateTradehistoryParams struct {
	Count *float64
	Direction *string
	EndID *float64
	EndSeq *float64
	EndTimestamp *int64
	Instrument string
	Since *float64
	Sort *string
	StartID *float64
	StartSeq *float64
	StartTimestamp *int64
	timeout    time.Duration
	Context    context.Context
	HTTPClient *http.Client
}
func (o *GetPrivateTradehistoryParams) WithTimeout(timeout time.Duration) *GetPrivateTradehistoryParams {
	o.SetTimeout(timeout)
	return o
}
func (o *GetPrivateTradehistoryParams) SetTimeout(timeout time.Duration) {
	o.timeout = timeout
}
func (o *GetPrivateTradehistoryParams) WithContext(ctx context.Context) *GetPrivateTradehistoryParams {
	o.SetContext(ctx)
	return o
}
func (o *GetPrivateTradehistoryParams) SetContext(ctx context.Context) {
	o.Context = ctx
}
func (o *GetPrivateTradehistoryParams) WithHTTPClient(client *http.Client) *GetPrivateTradehistoryParams {
	o.SetHTTPClient(client)
	return o
}
func (o *GetPrivateTradehistoryParams) SetHTTPClient(client *http.Client) {
	o.HTTPClient = client
}
func (o *GetPrivateTradehistoryParams) WithCount(count *float64) *GetPrivateTradehistoryParams {
	o.SetCount(count)
	return o
}
func (o *GetPrivateTradehistoryParams) SetCount(count *float64) {
	o.Count = count
}
func (o *GetPrivateTradehistoryParams) WithDirection(direction *string) *GetPrivateTradehistoryParams {
	o.SetDirection(direction)
	return o
}
func (o *GetPrivateTradehistoryParams) SetDirection(direction *string) {
	o.Direction = direction
}
func (o *GetPrivateTradehistoryParams) WithEndID(endID *float64) *GetPrivateTradehistoryParams {
	o.SetEndID(endID)
	return o
}
func (o *GetPrivateTradehistoryParams) SetEndID(endID *float64) {
	o.EndID = endID
}
func (o *GetPrivateTradehistoryParams) WithEndSeq(endSeq *float64) *GetPrivateTradehistoryParams {
	o.SetEndSeq(endSeq)
	return o
}
func (o *GetPrivateTradehistoryParams) SetEndSeq(endSeq *float64) {
	o.EndSeq = endSeq
}