Documentation ¶
Index ¶
- type Client
- func (a *Client) PositionGet(params *PositionGetParams, authInfo runtime.ClientAuthInfoWriter) (*PositionGetOK, error)
- func (a *Client) PositionIsolateMargin(params *PositionIsolateMarginParams, authInfo runtime.ClientAuthInfoWriter) (*PositionIsolateMarginOK, error)
- func (a *Client) PositionTransferIsolatedMargin(params *PositionTransferIsolatedMarginParams, ...) (*PositionTransferIsolatedMarginOK, error)
- func (a *Client) PositionUpdateLeverage(params *PositionUpdateLeverageParams, authInfo runtime.ClientAuthInfoWriter) (*PositionUpdateLeverageOK, error)
- func (a *Client) PositionUpdateRiskLimit(params *PositionUpdateRiskLimitParams, authInfo runtime.ClientAuthInfoWriter) (*PositionUpdateRiskLimitOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type PositionGetBadRequest
- type PositionGetNotFound
- type PositionGetOK
- type PositionGetParams
- func (o *PositionGetParams) SetColumns(columns *string)
- func (o *PositionGetParams) SetContext(ctx context.Context)
- func (o *PositionGetParams) SetCount(count *int32)
- func (o *PositionGetParams) SetFilter(filter *string)
- func (o *PositionGetParams) SetHTTPClient(client *http.Client)
- func (o *PositionGetParams) SetTimeout(timeout time.Duration)
- func (o *PositionGetParams) WithColumns(columns *string) *PositionGetParams
- func (o *PositionGetParams) WithContext(ctx context.Context) *PositionGetParams
- func (o *PositionGetParams) WithCount(count *int32) *PositionGetParams
- func (o *PositionGetParams) WithFilter(filter *string) *PositionGetParams
- func (o *PositionGetParams) WithHTTPClient(client *http.Client) *PositionGetParams
- func (o *PositionGetParams) WithTimeout(timeout time.Duration) *PositionGetParams
- func (o *PositionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PositionGetReader
- type PositionGetUnauthorized
- type PositionIsolateMarginBadRequest
- type PositionIsolateMarginNotFound
- type PositionIsolateMarginOK
- type PositionIsolateMarginParams
- func NewPositionIsolateMarginParams() *PositionIsolateMarginParams
- func NewPositionIsolateMarginParamsWithContext(ctx context.Context) *PositionIsolateMarginParams
- func NewPositionIsolateMarginParamsWithHTTPClient(client *http.Client) *PositionIsolateMarginParams
- func NewPositionIsolateMarginParamsWithTimeout(timeout time.Duration) *PositionIsolateMarginParams
- func (o *PositionIsolateMarginParams) SetContext(ctx context.Context)
- func (o *PositionIsolateMarginParams) SetEnabled(enabled *bool)
- func (o *PositionIsolateMarginParams) SetHTTPClient(client *http.Client)
- func (o *PositionIsolateMarginParams) SetSymbol(symbol string)
- func (o *PositionIsolateMarginParams) SetTimeout(timeout time.Duration)
- func (o *PositionIsolateMarginParams) WithContext(ctx context.Context) *PositionIsolateMarginParams
- func (o *PositionIsolateMarginParams) WithEnabled(enabled *bool) *PositionIsolateMarginParams
- func (o *PositionIsolateMarginParams) WithHTTPClient(client *http.Client) *PositionIsolateMarginParams
- func (o *PositionIsolateMarginParams) WithSymbol(symbol string) *PositionIsolateMarginParams
- func (o *PositionIsolateMarginParams) WithTimeout(timeout time.Duration) *PositionIsolateMarginParams
- func (o *PositionIsolateMarginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PositionIsolateMarginReader
- type PositionIsolateMarginUnauthorized
- type PositionTransferIsolatedMarginBadRequest
- type PositionTransferIsolatedMarginNotFound
- type PositionTransferIsolatedMarginOK
- type PositionTransferIsolatedMarginParams
- func NewPositionTransferIsolatedMarginParams() *PositionTransferIsolatedMarginParams
- func NewPositionTransferIsolatedMarginParamsWithContext(ctx context.Context) *PositionTransferIsolatedMarginParams
- func NewPositionTransferIsolatedMarginParamsWithHTTPClient(client *http.Client) *PositionTransferIsolatedMarginParams
- func NewPositionTransferIsolatedMarginParamsWithTimeout(timeout time.Duration) *PositionTransferIsolatedMarginParams
- func (o *PositionTransferIsolatedMarginParams) SetAmount(amount int64)
- func (o *PositionTransferIsolatedMarginParams) SetContext(ctx context.Context)
- func (o *PositionTransferIsolatedMarginParams) SetHTTPClient(client *http.Client)
- func (o *PositionTransferIsolatedMarginParams) SetSymbol(symbol string)
- func (o *PositionTransferIsolatedMarginParams) SetTimeout(timeout time.Duration)
- func (o *PositionTransferIsolatedMarginParams) WithAmount(amount int64) *PositionTransferIsolatedMarginParams
- func (o *PositionTransferIsolatedMarginParams) WithContext(ctx context.Context) *PositionTransferIsolatedMarginParams
- func (o *PositionTransferIsolatedMarginParams) WithHTTPClient(client *http.Client) *PositionTransferIsolatedMarginParams
- func (o *PositionTransferIsolatedMarginParams) WithSymbol(symbol string) *PositionTransferIsolatedMarginParams
- func (o *PositionTransferIsolatedMarginParams) WithTimeout(timeout time.Duration) *PositionTransferIsolatedMarginParams
- func (o *PositionTransferIsolatedMarginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PositionTransferIsolatedMarginReader
- type PositionTransferIsolatedMarginUnauthorized
- type PositionUpdateLeverageBadRequest
- type PositionUpdateLeverageNotFound
- type PositionUpdateLeverageOK
- type PositionUpdateLeverageParams
- func NewPositionUpdateLeverageParams() *PositionUpdateLeverageParams
- func NewPositionUpdateLeverageParamsWithContext(ctx context.Context) *PositionUpdateLeverageParams
- func NewPositionUpdateLeverageParamsWithHTTPClient(client *http.Client) *PositionUpdateLeverageParams
- func NewPositionUpdateLeverageParamsWithTimeout(timeout time.Duration) *PositionUpdateLeverageParams
- func (o *PositionUpdateLeverageParams) SetContext(ctx context.Context)
- func (o *PositionUpdateLeverageParams) SetHTTPClient(client *http.Client)
- func (o *PositionUpdateLeverageParams) SetLeverage(leverage float64)
- func (o *PositionUpdateLeverageParams) SetSymbol(symbol string)
- func (o *PositionUpdateLeverageParams) SetTimeout(timeout time.Duration)
- func (o *PositionUpdateLeverageParams) WithContext(ctx context.Context) *PositionUpdateLeverageParams
- func (o *PositionUpdateLeverageParams) WithHTTPClient(client *http.Client) *PositionUpdateLeverageParams
- func (o *PositionUpdateLeverageParams) WithLeverage(leverage float64) *PositionUpdateLeverageParams
- func (o *PositionUpdateLeverageParams) WithSymbol(symbol string) *PositionUpdateLeverageParams
- func (o *PositionUpdateLeverageParams) WithTimeout(timeout time.Duration) *PositionUpdateLeverageParams
- func (o *PositionUpdateLeverageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PositionUpdateLeverageReader
- type PositionUpdateLeverageUnauthorized
- type PositionUpdateRiskLimitBadRequest
- type PositionUpdateRiskLimitNotFound
- type PositionUpdateRiskLimitOK
- type PositionUpdateRiskLimitParams
- func NewPositionUpdateRiskLimitParams() *PositionUpdateRiskLimitParams
- func NewPositionUpdateRiskLimitParamsWithContext(ctx context.Context) *PositionUpdateRiskLimitParams
- func NewPositionUpdateRiskLimitParamsWithHTTPClient(client *http.Client) *PositionUpdateRiskLimitParams
- func NewPositionUpdateRiskLimitParamsWithTimeout(timeout time.Duration) *PositionUpdateRiskLimitParams
- func (o *PositionUpdateRiskLimitParams) SetContext(ctx context.Context)
- func (o *PositionUpdateRiskLimitParams) SetHTTPClient(client *http.Client)
- func (o *PositionUpdateRiskLimitParams) SetRiskLimit(riskLimit int64)
- func (o *PositionUpdateRiskLimitParams) SetSymbol(symbol string)
- func (o *PositionUpdateRiskLimitParams) SetTimeout(timeout time.Duration)
- func (o *PositionUpdateRiskLimitParams) WithContext(ctx context.Context) *PositionUpdateRiskLimitParams
- func (o *PositionUpdateRiskLimitParams) WithHTTPClient(client *http.Client) *PositionUpdateRiskLimitParams
- func (o *PositionUpdateRiskLimitParams) WithRiskLimit(riskLimit int64) *PositionUpdateRiskLimitParams
- func (o *PositionUpdateRiskLimitParams) WithSymbol(symbol string) *PositionUpdateRiskLimitParams
- func (o *PositionUpdateRiskLimitParams) WithTimeout(timeout time.Duration) *PositionUpdateRiskLimitParams
- func (o *PositionUpdateRiskLimitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PositionUpdateRiskLimitReader
- type PositionUpdateRiskLimitUnauthorized
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 ¶
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 ¶
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 ¶
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 {
}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 ¶
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 ¶
func (o *PositionIsolateMarginBadRequest) Error() string
type PositionIsolateMarginNotFound ¶
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 ¶
func (o *PositionIsolateMarginNotFound) Error() string
type PositionIsolateMarginOK ¶
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 ¶
func (o *PositionIsolateMarginParams) WithContext(ctx context.Context) *PositionIsolateMarginParams
WithContext adds the context to the position isolate margin params
func (*PositionIsolateMarginParams) WithEnabled ¶
func (o *PositionIsolateMarginParams) WithEnabled(enabled *bool) *PositionIsolateMarginParams
WithEnabled adds the enabled to the position isolate margin params
func (*PositionIsolateMarginParams) WithHTTPClient ¶
func (o *PositionIsolateMarginParams) WithHTTPClient(client *http.Client) *PositionIsolateMarginParams
WithHTTPClient adds the HTTPClient to the position isolate margin params
func (*PositionIsolateMarginParams) WithSymbol ¶
func (o *PositionIsolateMarginParams) WithSymbol(symbol string) *PositionIsolateMarginParams
WithSymbol adds the symbol to the position isolate margin params
func (*PositionIsolateMarginParams) WithTimeout ¶
func (o *PositionIsolateMarginParams) WithTimeout(timeout time.Duration) *PositionIsolateMarginParams
WithTimeout adds the timeout to the position isolate margin params
func (*PositionIsolateMarginParams) WriteToRequest ¶
func (o *PositionIsolateMarginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *PositionIsolateMarginUnauthorized) Error() string
type PositionTransferIsolatedMarginBadRequest ¶
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 ¶
func (o *PositionTransferIsolatedMarginBadRequest) Error() string
type PositionTransferIsolatedMarginNotFound ¶
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 ¶
func (o *PositionTransferIsolatedMarginNotFound) Error() string
type PositionTransferIsolatedMarginOK ¶
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 ¶
func (o *PositionTransferIsolatedMarginOK) Error() string
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 ¶
func (o *PositionTransferIsolatedMarginParams) SetContext(ctx context.Context)
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 ¶
func (o *PositionTransferIsolatedMarginParams) WithAmount(amount int64) *PositionTransferIsolatedMarginParams
WithAmount adds the amount to the position transfer isolated margin params
func (*PositionTransferIsolatedMarginParams) WithContext ¶
func (o *PositionTransferIsolatedMarginParams) WithContext(ctx context.Context) *PositionTransferIsolatedMarginParams
WithContext adds the context to the position transfer isolated margin params
func (*PositionTransferIsolatedMarginParams) WithHTTPClient ¶
func (o *PositionTransferIsolatedMarginParams) WithHTTPClient(client *http.Client) *PositionTransferIsolatedMarginParams
WithHTTPClient adds the HTTPClient to the position transfer isolated margin params
func (*PositionTransferIsolatedMarginParams) WithSymbol ¶
func (o *PositionTransferIsolatedMarginParams) WithSymbol(symbol string) *PositionTransferIsolatedMarginParams
WithSymbol adds the symbol to the position transfer isolated margin params
func (*PositionTransferIsolatedMarginParams) WithTimeout ¶
func (o *PositionTransferIsolatedMarginParams) WithTimeout(timeout time.Duration) *PositionTransferIsolatedMarginParams
WithTimeout adds the timeout to the position transfer isolated margin params
func (*PositionTransferIsolatedMarginParams) WriteToRequest ¶
func (o *PositionTransferIsolatedMarginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *PositionTransferIsolatedMarginUnauthorized) Error() string
type PositionUpdateLeverageBadRequest ¶
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 ¶
func (o *PositionUpdateLeverageBadRequest) Error() string
type PositionUpdateLeverageNotFound ¶
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 ¶
func (o *PositionUpdateLeverageNotFound) Error() string
type PositionUpdateLeverageOK ¶
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 ¶
func (o *PositionUpdateLeverageParams) WithContext(ctx context.Context) *PositionUpdateLeverageParams
WithContext adds the context to the position update leverage params
func (*PositionUpdateLeverageParams) WithHTTPClient ¶
func (o *PositionUpdateLeverageParams) WithHTTPClient(client *http.Client) *PositionUpdateLeverageParams
WithHTTPClient adds the HTTPClient to the position update leverage params
func (*PositionUpdateLeverageParams) WithLeverage ¶
func (o *PositionUpdateLeverageParams) WithLeverage(leverage float64) *PositionUpdateLeverageParams
WithLeverage adds the leverage to the position update leverage params
func (*PositionUpdateLeverageParams) WithSymbol ¶
func (o *PositionUpdateLeverageParams) WithSymbol(symbol string) *PositionUpdateLeverageParams
WithSymbol adds the symbol to the position update leverage params
func (*PositionUpdateLeverageParams) WithTimeout ¶
func (o *PositionUpdateLeverageParams) WithTimeout(timeout time.Duration) *PositionUpdateLeverageParams
WithTimeout adds the timeout to the position update leverage params
func (*PositionUpdateLeverageParams) WriteToRequest ¶
func (o *PositionUpdateLeverageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *PositionUpdateLeverageUnauthorized) Error() string
type PositionUpdateRiskLimitBadRequest ¶
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 ¶
func (o *PositionUpdateRiskLimitBadRequest) Error() string
type PositionUpdateRiskLimitNotFound ¶
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 ¶
func (o *PositionUpdateRiskLimitNotFound) Error() string
type PositionUpdateRiskLimitOK ¶
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 ¶
func (o *PositionUpdateRiskLimitParams) WithContext(ctx context.Context) *PositionUpdateRiskLimitParams
WithContext adds the context to the position update risk limit params
func (*PositionUpdateRiskLimitParams) WithHTTPClient ¶
func (o *PositionUpdateRiskLimitParams) WithHTTPClient(client *http.Client) *PositionUpdateRiskLimitParams
WithHTTPClient adds the HTTPClient to the position update risk limit params
func (*PositionUpdateRiskLimitParams) WithRiskLimit ¶
func (o *PositionUpdateRiskLimitParams) WithRiskLimit(riskLimit int64) *PositionUpdateRiskLimitParams
WithRiskLimit adds the riskLimit to the position update risk limit params
func (*PositionUpdateRiskLimitParams) WithSymbol ¶
func (o *PositionUpdateRiskLimitParams) WithSymbol(symbol string) *PositionUpdateRiskLimitParams
WithSymbol adds the symbol to the position update risk limit params
func (*PositionUpdateRiskLimitParams) WithTimeout ¶
func (o *PositionUpdateRiskLimitParams) WithTimeout(timeout time.Duration) *PositionUpdateRiskLimitParams
WithTimeout adds the timeout to the position update risk limit params
func (*PositionUpdateRiskLimitParams) WriteToRequest ¶
func (o *PositionUpdateRiskLimitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *PositionUpdateRiskLimitUnauthorized) Error() string
Source Files ¶
- position_client.go
- position_get_parameters.go
- position_get_responses.go
- position_isolate_margin_parameters.go
- position_isolate_margin_responses.go
- position_transfer_isolated_margin_parameters.go
- position_transfer_isolated_margin_responses.go
- position_update_leverage_parameters.go
- position_update_leverage_responses.go
- position_update_risk_limit_parameters.go
- position_update_risk_limit_responses.go