position

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2020 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for position API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new position API client.

func (*Client) PositionGet

func (a *Client) PositionGet(params *PositionGetParams, authInfo runtime.ClientAuthInfoWriter) (*PositionGetOK, error)

PositionGet gets your positions

See <a href="http://www.onixs.biz/fix-dictionary/5.0.SP2/msgType_AP_6580.html">the FIX Spec</a> for explanations of these fields.

func (*Client) PositionIsolateMargin

func (a *Client) PositionIsolateMargin(params *PositionIsolateMarginParams, authInfo runtime.ClientAuthInfoWriter) (*PositionIsolateMarginOK, error)

PositionIsolateMargin enables isolated margin or cross margin per position

func (*Client) PositionTransferIsolatedMargin

func (a *Client) PositionTransferIsolatedMargin(params *PositionTransferIsolatedMarginParams, authInfo runtime.ClientAuthInfoWriter) (*PositionTransferIsolatedMarginOK, error)

PositionTransferIsolatedMargin transfers equity in or out of a position

func (*Client) PositionUpdateLeverage

func (a *Client) PositionUpdateLeverage(params *PositionUpdateLeverageParams, authInfo runtime.ClientAuthInfoWriter) (*PositionUpdateLeverageOK, error)

PositionUpdateLeverage chooses leverage for a position

func (*Client) PositionUpdateRiskLimit

func (a *Client) PositionUpdateRiskLimit(params *PositionUpdateRiskLimitParams, authInfo runtime.ClientAuthInfoWriter) (*PositionUpdateRiskLimitOK, error)

PositionUpdateRiskLimit updates your risk limit

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type PositionGetBadRequest

type PositionGetBadRequest struct {
	Payload *models.Error
}

PositionGetBadRequest handles this case with default header values.

Parameter Error

func NewPositionGetBadRequest

func NewPositionGetBadRequest() *PositionGetBadRequest

NewPositionGetBadRequest creates a PositionGetBadRequest with default headers values

func (*PositionGetBadRequest) Error

func (o *PositionGetBadRequest) Error() string

type PositionGetNotFound

type PositionGetNotFound struct {
	Payload *models.Error
}

PositionGetNotFound handles this case with default header values.

Not Found

func NewPositionGetNotFound

func NewPositionGetNotFound() *PositionGetNotFound

NewPositionGetNotFound creates a PositionGetNotFound with default headers values

func (*PositionGetNotFound) Error

func (o *PositionGetNotFound) Error() string

type PositionGetOK

type PositionGetOK struct {
	Payload []*models.Position
}

PositionGetOK handles this case with default header values.

Request was successful

func NewPositionGetOK

func NewPositionGetOK() *PositionGetOK

NewPositionGetOK creates a PositionGetOK with default headers values

func (*PositionGetOK) Error

func (o *PositionGetOK) Error() string

type PositionGetParams

type PositionGetParams struct {

	/*Columns
	  Which columns to fetch. For example, send ["columnName"].

	*/
	Columns *string
	/*Count
	  Number of rows to fetch.

	*/
	Count *int32
	/*Filter
	  Table filter. For example, send {"symbol": "XBTUSD"}.

	*/
	Filter *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PositionGetParams contains all the parameters to send to the API endpoint for the position get operation typically these are written to a http.Request

func NewPositionGetParams

func NewPositionGetParams() *PositionGetParams

NewPositionGetParams creates a new PositionGetParams object with the default values initialized.

func NewPositionGetParamsWithContext

func NewPositionGetParamsWithContext(ctx context.Context) *PositionGetParams

NewPositionGetParamsWithContext creates a new PositionGetParams object with the default values initialized, and the ability to set a context for a request

func NewPositionGetParamsWithHTTPClient

func NewPositionGetParamsWithHTTPClient(client *http.Client) *PositionGetParams

NewPositionGetParamsWithHTTPClient creates a new PositionGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPositionGetParamsWithTimeout

func NewPositionGetParamsWithTimeout(timeout time.Duration) *PositionGetParams

NewPositionGetParamsWithTimeout creates a new PositionGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*PositionGetParams) SetColumns

func (o *PositionGetParams) SetColumns(columns *string)

SetColumns adds the columns to the position get params

func (*PositionGetParams) SetContext

func (o *PositionGetParams) SetContext(ctx context.Context)

SetContext adds the context to the position get params

func (*PositionGetParams) SetCount

func (o *PositionGetParams) SetCount(count *int32)

SetCount adds the count to the position get params

func (*PositionGetParams) SetFilter

func (o *PositionGetParams) SetFilter(filter *string)

SetFilter adds the filter to the position get params

func (*PositionGetParams) SetHTTPClient

func (o *PositionGetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the position get params

func (*PositionGetParams) SetTimeout

func (o *PositionGetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the position get params

func (*PositionGetParams) WithColumns

func (o *PositionGetParams) WithColumns(columns *string) *PositionGetParams

WithColumns adds the columns to the position get params

func (*PositionGetParams) WithContext

func (o *PositionGetParams) WithContext(ctx context.Context) *PositionGetParams

WithContext adds the context to the position get params

func (*PositionGetParams) WithCount

func (o *PositionGetParams) WithCount(count *int32) *PositionGetParams

WithCount adds the count to the position get params

func (*PositionGetParams) WithFilter

func (o *PositionGetParams) WithFilter(filter *string) *PositionGetParams

WithFilter adds the filter to the position get params

func (*PositionGetParams) WithHTTPClient

func (o *PositionGetParams) WithHTTPClient(client *http.Client) *PositionGetParams

WithHTTPClient adds the HTTPClient to the position get params

func (*PositionGetParams) WithTimeout

func (o *PositionGetParams) WithTimeout(timeout time.Duration) *PositionGetParams

WithTimeout adds the timeout to the position get params

func (*PositionGetParams) WriteToRequest

func (o *PositionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PositionGetReader

type PositionGetReader struct {
	// contains filtered or unexported fields
}

PositionGetReader is a Reader for the PositionGet structure.

func (*PositionGetReader) ReadResponse

func (o *PositionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PositionGetUnauthorized

type PositionGetUnauthorized struct {
	Payload *models.Error
}

PositionGetUnauthorized handles this case with default header values.

Unauthorized

func NewPositionGetUnauthorized

func NewPositionGetUnauthorized() *PositionGetUnauthorized

NewPositionGetUnauthorized creates a PositionGetUnauthorized with default headers values

func (*PositionGetUnauthorized) Error

func (o *PositionGetUnauthorized) Error() string

type PositionIsolateMarginBadRequest

type PositionIsolateMarginBadRequest struct {
	Payload *models.Error
}

PositionIsolateMarginBadRequest handles this case with default header values.

Parameter Error

func NewPositionIsolateMarginBadRequest

func NewPositionIsolateMarginBadRequest() *PositionIsolateMarginBadRequest

NewPositionIsolateMarginBadRequest creates a PositionIsolateMarginBadRequest with default headers values

func (*PositionIsolateMarginBadRequest) Error

type PositionIsolateMarginNotFound

type PositionIsolateMarginNotFound struct {
	Payload *models.Error
}

PositionIsolateMarginNotFound handles this case with default header values.

Not Found

func NewPositionIsolateMarginNotFound

func NewPositionIsolateMarginNotFound() *PositionIsolateMarginNotFound

NewPositionIsolateMarginNotFound creates a PositionIsolateMarginNotFound with default headers values

func (*PositionIsolateMarginNotFound) Error

type PositionIsolateMarginOK

type PositionIsolateMarginOK struct {
	Payload *models.Position
}

PositionIsolateMarginOK handles this case with default header values.

Request was successful

func NewPositionIsolateMarginOK

func NewPositionIsolateMarginOK() *PositionIsolateMarginOK

NewPositionIsolateMarginOK creates a PositionIsolateMarginOK with default headers values

func (*PositionIsolateMarginOK) Error

func (o *PositionIsolateMarginOK) Error() string

type PositionIsolateMarginParams

type PositionIsolateMarginParams struct {

	/*Enabled
	  True for isolated margin, false for cross margin.

	*/
	Enabled *bool
	/*Symbol
	  Position symbol to isolate.

	*/
	Symbol string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PositionIsolateMarginParams contains all the parameters to send to the API endpoint for the position isolate margin operation typically these are written to a http.Request

func NewPositionIsolateMarginParams

func NewPositionIsolateMarginParams() *PositionIsolateMarginParams

NewPositionIsolateMarginParams creates a new PositionIsolateMarginParams object with the default values initialized.

func NewPositionIsolateMarginParamsWithContext

func NewPositionIsolateMarginParamsWithContext(ctx context.Context) *PositionIsolateMarginParams

NewPositionIsolateMarginParamsWithContext creates a new PositionIsolateMarginParams object with the default values initialized, and the ability to set a context for a request

func NewPositionIsolateMarginParamsWithHTTPClient

func NewPositionIsolateMarginParamsWithHTTPClient(client *http.Client) *PositionIsolateMarginParams

NewPositionIsolateMarginParamsWithHTTPClient creates a new PositionIsolateMarginParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPositionIsolateMarginParamsWithTimeout

func NewPositionIsolateMarginParamsWithTimeout(timeout time.Duration) *PositionIsolateMarginParams

NewPositionIsolateMarginParamsWithTimeout creates a new PositionIsolateMarginParams object with the default values initialized, and the ability to set a timeout on a request

func (*PositionIsolateMarginParams) SetContext

func (o *PositionIsolateMarginParams) SetContext(ctx context.Context)

SetContext adds the context to the position isolate margin params

func (*PositionIsolateMarginParams) SetEnabled

func (o *PositionIsolateMarginParams) SetEnabled(enabled *bool)

SetEnabled adds the enabled to the position isolate margin params

func (*PositionIsolateMarginParams) SetHTTPClient

func (o *PositionIsolateMarginParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the position isolate margin params

func (*PositionIsolateMarginParams) SetSymbol

func (o *PositionIsolateMarginParams) SetSymbol(symbol string)

SetSymbol adds the symbol to the position isolate margin params

func (*PositionIsolateMarginParams) SetTimeout

func (o *PositionIsolateMarginParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the position isolate margin params

func (*PositionIsolateMarginParams) WithContext

WithContext adds the context to the position isolate margin params

func (*PositionIsolateMarginParams) WithEnabled

WithEnabled adds the enabled to the position isolate margin params

func (*PositionIsolateMarginParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the position isolate margin params

func (*PositionIsolateMarginParams) WithSymbol

WithSymbol adds the symbol to the position isolate margin params

func (*PositionIsolateMarginParams) WithTimeout

WithTimeout adds the timeout to the position isolate margin params

func (*PositionIsolateMarginParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PositionIsolateMarginReader

type PositionIsolateMarginReader struct {
	// contains filtered or unexported fields
}

PositionIsolateMarginReader is a Reader for the PositionIsolateMargin structure.

func (*PositionIsolateMarginReader) ReadResponse

func (o *PositionIsolateMarginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PositionIsolateMarginUnauthorized

type PositionIsolateMarginUnauthorized struct {
	Payload *models.Error
}

PositionIsolateMarginUnauthorized handles this case with default header values.

Unauthorized

func NewPositionIsolateMarginUnauthorized

func NewPositionIsolateMarginUnauthorized() *PositionIsolateMarginUnauthorized

NewPositionIsolateMarginUnauthorized creates a PositionIsolateMarginUnauthorized with default headers values

func (*PositionIsolateMarginUnauthorized) Error

type PositionTransferIsolatedMarginBadRequest

type PositionTransferIsolatedMarginBadRequest struct {
	Payload *models.Error
}

PositionTransferIsolatedMarginBadRequest handles this case with default header values.

Parameter Error

func NewPositionTransferIsolatedMarginBadRequest

func NewPositionTransferIsolatedMarginBadRequest() *PositionTransferIsolatedMarginBadRequest

NewPositionTransferIsolatedMarginBadRequest creates a PositionTransferIsolatedMarginBadRequest with default headers values

func (*PositionTransferIsolatedMarginBadRequest) Error

type PositionTransferIsolatedMarginNotFound

type PositionTransferIsolatedMarginNotFound struct {
	Payload *models.Error
}

PositionTransferIsolatedMarginNotFound handles this case with default header values.

Not Found

func NewPositionTransferIsolatedMarginNotFound

func NewPositionTransferIsolatedMarginNotFound() *PositionTransferIsolatedMarginNotFound

NewPositionTransferIsolatedMarginNotFound creates a PositionTransferIsolatedMarginNotFound with default headers values

func (*PositionTransferIsolatedMarginNotFound) Error

type PositionTransferIsolatedMarginOK

type PositionTransferIsolatedMarginOK struct {
	Payload *models.Position
}

PositionTransferIsolatedMarginOK handles this case with default header values.

Request was successful

func NewPositionTransferIsolatedMarginOK

func NewPositionTransferIsolatedMarginOK() *PositionTransferIsolatedMarginOK

NewPositionTransferIsolatedMarginOK creates a PositionTransferIsolatedMarginOK with default headers values

func (*PositionTransferIsolatedMarginOK) Error

type PositionTransferIsolatedMarginParams

type PositionTransferIsolatedMarginParams struct {

	/*Amount
	  Amount to transfer, in Satoshis. May be negative.

	*/
	Amount int64
	/*Symbol
	  Symbol of position to isolate.

	*/
	Symbol string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PositionTransferIsolatedMarginParams contains all the parameters to send to the API endpoint for the position transfer isolated margin operation typically these are written to a http.Request

func NewPositionTransferIsolatedMarginParams

func NewPositionTransferIsolatedMarginParams() *PositionTransferIsolatedMarginParams

NewPositionTransferIsolatedMarginParams creates a new PositionTransferIsolatedMarginParams object with the default values initialized.

func NewPositionTransferIsolatedMarginParamsWithContext

func NewPositionTransferIsolatedMarginParamsWithContext(ctx context.Context) *PositionTransferIsolatedMarginParams

NewPositionTransferIsolatedMarginParamsWithContext creates a new PositionTransferIsolatedMarginParams object with the default values initialized, and the ability to set a context for a request

func NewPositionTransferIsolatedMarginParamsWithHTTPClient

func NewPositionTransferIsolatedMarginParamsWithHTTPClient(client *http.Client) *PositionTransferIsolatedMarginParams

NewPositionTransferIsolatedMarginParamsWithHTTPClient creates a new PositionTransferIsolatedMarginParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPositionTransferIsolatedMarginParamsWithTimeout

func NewPositionTransferIsolatedMarginParamsWithTimeout(timeout time.Duration) *PositionTransferIsolatedMarginParams

NewPositionTransferIsolatedMarginParamsWithTimeout creates a new PositionTransferIsolatedMarginParams object with the default values initialized, and the ability to set a timeout on a request

func (*PositionTransferIsolatedMarginParams) SetAmount

func (o *PositionTransferIsolatedMarginParams) SetAmount(amount int64)

SetAmount adds the amount to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) SetContext

SetContext adds the context to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) SetHTTPClient

func (o *PositionTransferIsolatedMarginParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) SetSymbol

func (o *PositionTransferIsolatedMarginParams) SetSymbol(symbol string)

SetSymbol adds the symbol to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) SetTimeout

func (o *PositionTransferIsolatedMarginParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) WithAmount

WithAmount adds the amount to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) WithContext

WithContext adds the context to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) WithSymbol

WithSymbol adds the symbol to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) WithTimeout

WithTimeout adds the timeout to the position transfer isolated margin params

func (*PositionTransferIsolatedMarginParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PositionTransferIsolatedMarginReader

type PositionTransferIsolatedMarginReader struct {
	// contains filtered or unexported fields
}

PositionTransferIsolatedMarginReader is a Reader for the PositionTransferIsolatedMargin structure.

func (*PositionTransferIsolatedMarginReader) ReadResponse

func (o *PositionTransferIsolatedMarginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PositionTransferIsolatedMarginUnauthorized

type PositionTransferIsolatedMarginUnauthorized struct {
	Payload *models.Error
}

PositionTransferIsolatedMarginUnauthorized handles this case with default header values.

Unauthorized

func NewPositionTransferIsolatedMarginUnauthorized

func NewPositionTransferIsolatedMarginUnauthorized() *PositionTransferIsolatedMarginUnauthorized

NewPositionTransferIsolatedMarginUnauthorized creates a PositionTransferIsolatedMarginUnauthorized with default headers values

func (*PositionTransferIsolatedMarginUnauthorized) Error

type PositionUpdateLeverageBadRequest

type PositionUpdateLeverageBadRequest struct {
	Payload *models.Error
}

PositionUpdateLeverageBadRequest handles this case with default header values.

Parameter Error

func NewPositionUpdateLeverageBadRequest

func NewPositionUpdateLeverageBadRequest() *PositionUpdateLeverageBadRequest

NewPositionUpdateLeverageBadRequest creates a PositionUpdateLeverageBadRequest with default headers values

func (*PositionUpdateLeverageBadRequest) Error

type PositionUpdateLeverageNotFound

type PositionUpdateLeverageNotFound struct {
	Payload *models.Error
}

PositionUpdateLeverageNotFound handles this case with default header values.

Not Found

func NewPositionUpdateLeverageNotFound

func NewPositionUpdateLeverageNotFound() *PositionUpdateLeverageNotFound

NewPositionUpdateLeverageNotFound creates a PositionUpdateLeverageNotFound with default headers values

func (*PositionUpdateLeverageNotFound) Error

type PositionUpdateLeverageOK

type PositionUpdateLeverageOK struct {
	Payload *models.Position
}

PositionUpdateLeverageOK handles this case with default header values.

Request was successful

func NewPositionUpdateLeverageOK

func NewPositionUpdateLeverageOK() *PositionUpdateLeverageOK

NewPositionUpdateLeverageOK creates a PositionUpdateLeverageOK with default headers values

func (*PositionUpdateLeverageOK) Error

func (o *PositionUpdateLeverageOK) Error() string

type PositionUpdateLeverageParams

type PositionUpdateLeverageParams struct {

	/*Leverage
	  Leverage value. Send a number between 0.01 and 100 to enable isolated margin with a fixed leverage. Send 0 to enable cross margin.

	*/
	Leverage float64
	/*Symbol
	  Symbol of position to adjust.

	*/
	Symbol string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PositionUpdateLeverageParams contains all the parameters to send to the API endpoint for the position update leverage operation typically these are written to a http.Request

func NewPositionUpdateLeverageParams

func NewPositionUpdateLeverageParams() *PositionUpdateLeverageParams

NewPositionUpdateLeverageParams creates a new PositionUpdateLeverageParams object with the default values initialized.

func NewPositionUpdateLeverageParamsWithContext

func NewPositionUpdateLeverageParamsWithContext(ctx context.Context) *PositionUpdateLeverageParams

NewPositionUpdateLeverageParamsWithContext creates a new PositionUpdateLeverageParams object with the default values initialized, and the ability to set a context for a request

func NewPositionUpdateLeverageParamsWithHTTPClient

func NewPositionUpdateLeverageParamsWithHTTPClient(client *http.Client) *PositionUpdateLeverageParams

NewPositionUpdateLeverageParamsWithHTTPClient creates a new PositionUpdateLeverageParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPositionUpdateLeverageParamsWithTimeout

func NewPositionUpdateLeverageParamsWithTimeout(timeout time.Duration) *PositionUpdateLeverageParams

NewPositionUpdateLeverageParamsWithTimeout creates a new PositionUpdateLeverageParams object with the default values initialized, and the ability to set a timeout on a request

func (*PositionUpdateLeverageParams) SetContext

func (o *PositionUpdateLeverageParams) SetContext(ctx context.Context)

SetContext adds the context to the position update leverage params

func (*PositionUpdateLeverageParams) SetHTTPClient

func (o *PositionUpdateLeverageParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the position update leverage params

func (*PositionUpdateLeverageParams) SetLeverage

func (o *PositionUpdateLeverageParams) SetLeverage(leverage float64)

SetLeverage adds the leverage to the position update leverage params

func (*PositionUpdateLeverageParams) SetSymbol

func (o *PositionUpdateLeverageParams) SetSymbol(symbol string)

SetSymbol adds the symbol to the position update leverage params

func (*PositionUpdateLeverageParams) SetTimeout

func (o *PositionUpdateLeverageParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the position update leverage params

func (*PositionUpdateLeverageParams) WithContext

WithContext adds the context to the position update leverage params

func (*PositionUpdateLeverageParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the position update leverage params

func (*PositionUpdateLeverageParams) WithLeverage

WithLeverage adds the leverage to the position update leverage params

func (*PositionUpdateLeverageParams) WithSymbol

WithSymbol adds the symbol to the position update leverage params

func (*PositionUpdateLeverageParams) WithTimeout

WithTimeout adds the timeout to the position update leverage params

func (*PositionUpdateLeverageParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PositionUpdateLeverageReader

type PositionUpdateLeverageReader struct {
	// contains filtered or unexported fields
}

PositionUpdateLeverageReader is a Reader for the PositionUpdateLeverage structure.

func (*PositionUpdateLeverageReader) ReadResponse

func (o *PositionUpdateLeverageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PositionUpdateLeverageUnauthorized

type PositionUpdateLeverageUnauthorized struct {
	Payload *models.Error
}

PositionUpdateLeverageUnauthorized handles this case with default header values.

Unauthorized

func NewPositionUpdateLeverageUnauthorized

func NewPositionUpdateLeverageUnauthorized() *PositionUpdateLeverageUnauthorized

NewPositionUpdateLeverageUnauthorized creates a PositionUpdateLeverageUnauthorized with default headers values

func (*PositionUpdateLeverageUnauthorized) Error

type PositionUpdateRiskLimitBadRequest

type PositionUpdateRiskLimitBadRequest struct {
	Payload *models.Error
}

PositionUpdateRiskLimitBadRequest handles this case with default header values.

Parameter Error

func NewPositionUpdateRiskLimitBadRequest

func NewPositionUpdateRiskLimitBadRequest() *PositionUpdateRiskLimitBadRequest

NewPositionUpdateRiskLimitBadRequest creates a PositionUpdateRiskLimitBadRequest with default headers values

func (*PositionUpdateRiskLimitBadRequest) Error

type PositionUpdateRiskLimitNotFound

type PositionUpdateRiskLimitNotFound struct {
	Payload *models.Error
}

PositionUpdateRiskLimitNotFound handles this case with default header values.

Not Found

func NewPositionUpdateRiskLimitNotFound

func NewPositionUpdateRiskLimitNotFound() *PositionUpdateRiskLimitNotFound

NewPositionUpdateRiskLimitNotFound creates a PositionUpdateRiskLimitNotFound with default headers values

func (*PositionUpdateRiskLimitNotFound) Error

type PositionUpdateRiskLimitOK

type PositionUpdateRiskLimitOK struct {
	Payload *models.Position
}

PositionUpdateRiskLimitOK handles this case with default header values.

Request was successful

func NewPositionUpdateRiskLimitOK

func NewPositionUpdateRiskLimitOK() *PositionUpdateRiskLimitOK

NewPositionUpdateRiskLimitOK creates a PositionUpdateRiskLimitOK with default headers values

func (*PositionUpdateRiskLimitOK) Error

func (o *PositionUpdateRiskLimitOK) Error() string

type PositionUpdateRiskLimitParams

type PositionUpdateRiskLimitParams struct {

	/*RiskLimit
	  New Risk Limit, in Satoshis.

	*/
	RiskLimit int64
	/*Symbol
	  Symbol of position to update risk limit on.

	*/
	Symbol string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PositionUpdateRiskLimitParams contains all the parameters to send to the API endpoint for the position update risk limit operation typically these are written to a http.Request

func NewPositionUpdateRiskLimitParams

func NewPositionUpdateRiskLimitParams() *PositionUpdateRiskLimitParams

NewPositionUpdateRiskLimitParams creates a new PositionUpdateRiskLimitParams object with the default values initialized.

func NewPositionUpdateRiskLimitParamsWithContext

func NewPositionUpdateRiskLimitParamsWithContext(ctx context.Context) *PositionUpdateRiskLimitParams

NewPositionUpdateRiskLimitParamsWithContext creates a new PositionUpdateRiskLimitParams object with the default values initialized, and the ability to set a context for a request

func NewPositionUpdateRiskLimitParamsWithHTTPClient

func NewPositionUpdateRiskLimitParamsWithHTTPClient(client *http.Client) *PositionUpdateRiskLimitParams

NewPositionUpdateRiskLimitParamsWithHTTPClient creates a new PositionUpdateRiskLimitParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPositionUpdateRiskLimitParamsWithTimeout

func NewPositionUpdateRiskLimitParamsWithTimeout(timeout time.Duration) *PositionUpdateRiskLimitParams

NewPositionUpdateRiskLimitParamsWithTimeout creates a new PositionUpdateRiskLimitParams object with the default values initialized, and the ability to set a timeout on a request

func (*PositionUpdateRiskLimitParams) SetContext

func (o *PositionUpdateRiskLimitParams) SetContext(ctx context.Context)

SetContext adds the context to the position update risk limit params

func (*PositionUpdateRiskLimitParams) SetHTTPClient

func (o *PositionUpdateRiskLimitParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the position update risk limit params

func (*PositionUpdateRiskLimitParams) SetRiskLimit

func (o *PositionUpdateRiskLimitParams) SetRiskLimit(riskLimit int64)

SetRiskLimit adds the riskLimit to the position update risk limit params

func (*PositionUpdateRiskLimitParams) SetSymbol

func (o *PositionUpdateRiskLimitParams) SetSymbol(symbol string)

SetSymbol adds the symbol to the position update risk limit params

func (*PositionUpdateRiskLimitParams) SetTimeout

func (o *PositionUpdateRiskLimitParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the position update risk limit params

func (*PositionUpdateRiskLimitParams) WithContext

WithContext adds the context to the position update risk limit params

func (*PositionUpdateRiskLimitParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the position update risk limit params

func (*PositionUpdateRiskLimitParams) WithRiskLimit

WithRiskLimit adds the riskLimit to the position update risk limit params

func (*PositionUpdateRiskLimitParams) WithSymbol

WithSymbol adds the symbol to the position update risk limit params

func (*PositionUpdateRiskLimitParams) WithTimeout

WithTimeout adds the timeout to the position update risk limit params

func (*PositionUpdateRiskLimitParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PositionUpdateRiskLimitReader

type PositionUpdateRiskLimitReader struct {
	// contains filtered or unexported fields
}

PositionUpdateRiskLimitReader is a Reader for the PositionUpdateRiskLimit structure.

func (*PositionUpdateRiskLimitReader) ReadResponse

func (o *PositionUpdateRiskLimitReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PositionUpdateRiskLimitUnauthorized

type PositionUpdateRiskLimitUnauthorized struct {
	Payload *models.Error
}

PositionUpdateRiskLimitUnauthorized handles this case with default header values.

Unauthorized

func NewPositionUpdateRiskLimitUnauthorized

func NewPositionUpdateRiskLimitUnauthorized() *PositionUpdateRiskLimitUnauthorized

NewPositionUpdateRiskLimitUnauthorized creates a PositionUpdateRiskLimitUnauthorized with default headers values

func (*PositionUpdateRiskLimitUnauthorized) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL