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)
}
/*
GetPrivateGetPosition retrieves user position
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)
}