func (a *Client) GetPrivateSetPasswordForSubaccount(params *GetPrivateSetPasswordForSubaccountParams) (*GetPrivateSetPasswordForSubaccountOK, error) {
	if params == nil {
		params = NewGetPrivateSetPasswordForSubaccountParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateSetPasswordForSubaccount",
		Method:             "GET",
		PathPattern:        "/private/set_password_for_subaccount",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateSetPasswordForSubaccountReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateSetPasswordForSubaccountOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateSetPasswordForSubaccount: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
/*
GetPrivateSetPasswordForSubaccount sets the password for the subaccount
package private
import (
	"fmt"
	"github.com/go-openapi/runtime"
	strfmt "github.com/go-openapi/strfmt"
)
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
	return &Client{transport: transport, formats: formats}
}
type Client struct {
	transport runtime.ClientTransport
	formats   strfmt.Registry
}
func (a *Client) GetPrivateBuy(params *GetPrivateBuyParams) (*GetPrivateBuyOK, error) {
	if params == nil {
		params = NewGetPrivateBuyParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateBuy",
		Method:             "GET",
		PathPattern:        "/private/buy",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateBuyReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateBuyOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateBuy: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateCancelTransferByID(params *GetPrivateCancelTransferByIDParams) (*GetPrivateCancelTransferByIDOK, error) {
	if params == nil {
		params = NewGetPrivateCancelTransferByIDParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateCancelTransferByID",
		Method:             "GET",
		PathPattern:        "/private/cancel_transfer_by_id",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateCancelTransferByIDReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateCancelTransferByIDOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateCancelTransferByID: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateChangeSubaccountName(params *GetPrivateChangeSubaccountNameParams) (*GetPrivateChangeSubaccountNameOK, error) {
	if params == nil {
		params = NewGetPrivateChangeSubaccountNameParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateChangeSubaccountName",
		Method:             "GET",
		PathPattern:        "/private/change_subaccount_name",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateChangeSubaccountNameReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateChangeSubaccountNameOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateChangeSubaccountName: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateClosePosition(params *GetPrivateClosePositionParams) (*GetPrivateClosePositionOK, error) {
	if params == nil {
		params = NewGetPrivateClosePositionParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateClosePosition",
		Method:             "GET",
		PathPattern:        "/private/close_position",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateClosePositionReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateClosePositionOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateClosePosition: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateCreateSubaccount(params *GetPrivateCreateSubaccountParams) (*GetPrivateCreateSubaccountOK, error) {
	if params == nil {
		params = NewGetPrivateCreateSubaccountParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateCreateSubaccount",
		Method:             "GET",
		PathPattern:        "/private/create_subaccount",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateCreateSubaccountReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateCreateSubaccountOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateCreateSubaccount: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateDisableTfaForSubaccount(params *GetPrivateDisableTfaForSubaccountParams) (*GetPrivateDisableTfaForSubaccountOK, error) {
	if params == nil {
		params = NewGetPrivateDisableTfaForSubaccountParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateDisableTfaForSubaccount",
		Method:             "GET",
		PathPattern:        "/private/disable_tfa_for_subaccount",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateDisableTfaForSubaccountReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateDisableTfaForSubaccountOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateDisableTfaForSubaccount: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateGetOrderState(params *GetPrivateGetOrderStateParams) (*GetPrivateGetOrderStateOK, error) {
	if params == nil {
		params = NewGetPrivateGetOrderStateParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateGetOrderState",
		Method:             "GET",
		PathPattern:        "/private/get_order_state",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateGetOrderStateReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateGetOrderStateOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateGetOrderState: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateGetPosition(params *GetPrivateGetPositionParams) (*GetPrivateGetPositionOK, error) {
	if params == nil {
		params = NewGetPrivateGetPositionParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateGetPosition",
		Method:             "GET",
		PathPattern:        "/private/get_position",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateGetPositionReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateGetPositionOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateGetPosition: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateGetPositions(params *GetPrivateGetPositionsParams) (*GetPrivateGetPositionsOK, error) {
	if params == nil {
		params = NewGetPrivateGetPositionsParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateGetPositions",
		Method:             "GET",
		PathPattern:        "/private/get_positions",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateGetPositionsReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateGetPositionsOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateGetPositions: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateGetSubaccounts(params *GetPrivateGetSubaccountsParams) (*GetPrivateGetSubaccountsOK, error) {
	if params == nil {
		params = NewGetPrivateGetSubaccountsParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateGetSubaccounts",
		Method:             "GET",
		PathPattern:        "/private/get_subaccounts",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateGetSubaccountsReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateGetSubaccountsOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateGetSubaccounts: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateSell(params *GetPrivateSellParams) (*GetPrivateSellOK, error) {
	if params == nil {
		params = NewGetPrivateSellParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateSell",
		Method:             "GET",
		PathPattern:        "/private/sell",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateSellReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateSellOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateSell: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}
func (a *Client) GetPrivateSetEmailForSubaccount(params *GetPrivateSetEmailForSubaccountParams) (*GetPrivateSetEmailForSubaccountOK, error) {
	if params == nil {
		params = NewGetPrivateSetEmailForSubaccountParams()
	}
	result, err := a.transport.Submit(&runtime.ClientOperation{
		ID:                 "GetPrivateSetEmailForSubaccount",
		Method:             "GET",
		PathPattern:        "/private/set_email_for_subaccount",
		ProducesMediaTypes: []string{"application/json"},
		ConsumesMediaTypes: []string{""},
		Schemes:            []string{"http"},
		Params:             params,
		Reader:             &GetPrivateSetEmailForSubaccountReader{formats: a.formats},
		Context:            params.Context,
		Client:             params.HTTPClient,
	})
	if err != nil {
		return nil, err
	}
	success, ok := result.(*GetPrivateSetEmailForSubaccountOK)
	if ok {
		return success, nil
	}
	msg := fmt.Sprintf("unexpected success response for GetPrivateSetEmailForSubaccount: API contract not enforced by server. Client expected to get an error, but got: %T", result)
	panic(msg)
}