execution

package
v0.0.0-...-1dccf95 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 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 execution API

func New

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

New creates a new execution API client.

func (*Client) ExecutionGet

func (a *Client) ExecutionGet(params *ExecutionGetParams, authInfo runtime.ClientAuthInfoWriter) (*ExecutionGetOK, error)

ExecutionGet gets all raw executions for your account

This returns all raw transactions, which includes order opening and cancelation, and order status changes. It can be quite noisy. More focused information is available at `/execution/tradeHistory`.

You may also use the `filter` param to target your query. Specify an array as a filter value, such as `{"execType": ["Settlement", "Trade"]}` to filter on multiple values.

See [the FIX Spec](http://www.onixs.biz/fix-dictionary/5.0.SP2/msgType_8_8.html) for explanations of these fields.

func (*Client) ExecutionGetTradeHistory

func (a *Client) ExecutionGetTradeHistory(params *ExecutionGetTradeHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*ExecutionGetTradeHistoryOK, error)

ExecutionGetTradeHistory gets all balance affecting executions this includes each trade insurance charge and settlement

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ExecutionGetBadRequest

type ExecutionGetBadRequest struct {
	Payload *models.Error
}

ExecutionGetBadRequest handles this case with default header values.

Parameter Error

func NewExecutionGetBadRequest

func NewExecutionGetBadRequest() *ExecutionGetBadRequest

NewExecutionGetBadRequest creates a ExecutionGetBadRequest with default headers values

func (*ExecutionGetBadRequest) Error

func (o *ExecutionGetBadRequest) Error() string

type ExecutionGetNotFound

type ExecutionGetNotFound struct {
	Payload *models.Error
}

ExecutionGetNotFound handles this case with default header values.

Not Found

func NewExecutionGetNotFound

func NewExecutionGetNotFound() *ExecutionGetNotFound

NewExecutionGetNotFound creates a ExecutionGetNotFound with default headers values

func (*ExecutionGetNotFound) Error

func (o *ExecutionGetNotFound) Error() string

type ExecutionGetOK

type ExecutionGetOK struct {
	Payload []*models.Execution
}

ExecutionGetOK handles this case with default header values.

Request was successful

func NewExecutionGetOK

func NewExecutionGetOK() *ExecutionGetOK

NewExecutionGetOK creates a ExecutionGetOK with default headers values

func (*ExecutionGetOK) Error

func (o *ExecutionGetOK) Error() string

type ExecutionGetParams

type ExecutionGetParams struct {

	/*Columns
	  Array of column names to fetch. If omitted, will return all columns.

	Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect.

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

	*/
	Count *int32
	/*EndTime
	  Ending date filter for results.

	*/
	EndTime *strfmt.DateTime
	/*Filter
	  Generic table filter. Send JSON key/value pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https://www.bitmex.com/app/restAPI#Timestamp-Filters) for more details.

	*/
	Filter *string
	/*Reverse
	  If true, will sort results newest first.

	*/
	Reverse *bool
	/*Start
	  Starting point for results.

	*/
	Start *int32
	/*StartTime
	  Starting date filter for results.

	*/
	StartTime *strfmt.DateTime
	/*Symbol
	  Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series.

	You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are `daily`, `weekly`, `monthly`, `quarterly`, and `biquarterly`.

	*/
	Symbol *string

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

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

func NewExecutionGetParams

func NewExecutionGetParams() *ExecutionGetParams

NewExecutionGetParams creates a new ExecutionGetParams object with the default values initialized.

func NewExecutionGetParamsWithContext

func NewExecutionGetParamsWithContext(ctx context.Context) *ExecutionGetParams

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

func NewExecutionGetParamsWithHTTPClient

func NewExecutionGetParamsWithHTTPClient(client *http.Client) *ExecutionGetParams

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

func NewExecutionGetParamsWithTimeout

func NewExecutionGetParamsWithTimeout(timeout time.Duration) *ExecutionGetParams

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

func (*ExecutionGetParams) SetColumns

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

SetColumns adds the columns to the execution get params

func (*ExecutionGetParams) SetContext

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

SetContext adds the context to the execution get params

func (*ExecutionGetParams) SetCount

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

SetCount adds the count to the execution get params

func (*ExecutionGetParams) SetEndTime

func (o *ExecutionGetParams) SetEndTime(endTime *strfmt.DateTime)

SetEndTime adds the endTime to the execution get params

func (*ExecutionGetParams) SetFilter

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

SetFilter adds the filter to the execution get params

func (*ExecutionGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the execution get params

func (*ExecutionGetParams) SetReverse

func (o *ExecutionGetParams) SetReverse(reverse *bool)

SetReverse adds the reverse to the execution get params

func (*ExecutionGetParams) SetStart

func (o *ExecutionGetParams) SetStart(start *int32)

SetStart adds the start to the execution get params

func (*ExecutionGetParams) SetStartTime

func (o *ExecutionGetParams) SetStartTime(startTime *strfmt.DateTime)

SetStartTime adds the startTime to the execution get params

func (*ExecutionGetParams) SetSymbol

func (o *ExecutionGetParams) SetSymbol(symbol *string)

SetSymbol adds the symbol to the execution get params

func (*ExecutionGetParams) SetTimeout

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

SetTimeout adds the timeout to the execution get params

func (*ExecutionGetParams) WithColumns

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

WithColumns adds the columns to the execution get params

func (*ExecutionGetParams) WithContext

WithContext adds the context to the execution get params

func (*ExecutionGetParams) WithCount

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

WithCount adds the count to the execution get params

func (*ExecutionGetParams) WithEndTime

func (o *ExecutionGetParams) WithEndTime(endTime *strfmt.DateTime) *ExecutionGetParams

WithEndTime adds the endTime to the execution get params

func (*ExecutionGetParams) WithFilter

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

WithFilter adds the filter to the execution get params

func (*ExecutionGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the execution get params

func (*ExecutionGetParams) WithReverse

func (o *ExecutionGetParams) WithReverse(reverse *bool) *ExecutionGetParams

WithReverse adds the reverse to the execution get params

func (*ExecutionGetParams) WithStart

func (o *ExecutionGetParams) WithStart(start *int32) *ExecutionGetParams

WithStart adds the start to the execution get params

func (*ExecutionGetParams) WithStartTime

func (o *ExecutionGetParams) WithStartTime(startTime *strfmt.DateTime) *ExecutionGetParams

WithStartTime adds the startTime to the execution get params

func (*ExecutionGetParams) WithSymbol

func (o *ExecutionGetParams) WithSymbol(symbol *string) *ExecutionGetParams

WithSymbol adds the symbol to the execution get params

func (*ExecutionGetParams) WithTimeout

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

WithTimeout adds the timeout to the execution get params

func (*ExecutionGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExecutionGetReader

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

ExecutionGetReader is a Reader for the ExecutionGet structure.

func (*ExecutionGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExecutionGetTradeHistoryBadRequest

type ExecutionGetTradeHistoryBadRequest struct {
	Payload *models.Error
}

ExecutionGetTradeHistoryBadRequest handles this case with default header values.

Parameter Error

func NewExecutionGetTradeHistoryBadRequest

func NewExecutionGetTradeHistoryBadRequest() *ExecutionGetTradeHistoryBadRequest

NewExecutionGetTradeHistoryBadRequest creates a ExecutionGetTradeHistoryBadRequest with default headers values

func (*ExecutionGetTradeHistoryBadRequest) Error

type ExecutionGetTradeHistoryNotFound

type ExecutionGetTradeHistoryNotFound struct {
	Payload *models.Error
}

ExecutionGetTradeHistoryNotFound handles this case with default header values.

Not Found

func NewExecutionGetTradeHistoryNotFound

func NewExecutionGetTradeHistoryNotFound() *ExecutionGetTradeHistoryNotFound

NewExecutionGetTradeHistoryNotFound creates a ExecutionGetTradeHistoryNotFound with default headers values

func (*ExecutionGetTradeHistoryNotFound) Error

type ExecutionGetTradeHistoryOK

type ExecutionGetTradeHistoryOK struct {
	Payload []*models.Execution
}

ExecutionGetTradeHistoryOK handles this case with default header values.

Request was successful

func NewExecutionGetTradeHistoryOK

func NewExecutionGetTradeHistoryOK() *ExecutionGetTradeHistoryOK

NewExecutionGetTradeHistoryOK creates a ExecutionGetTradeHistoryOK with default headers values

func (*ExecutionGetTradeHistoryOK) Error

type ExecutionGetTradeHistoryParams

type ExecutionGetTradeHistoryParams struct {

	/*Columns
	  Array of column names to fetch. If omitted, will return all columns.

	Note that this method will always return item keys, even when not specified, so you may receive more columns that you expect.

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

	*/
	Count *int32
	/*EndTime
	  Ending date filter for results.

	*/
	EndTime *strfmt.DateTime
	/*Filter
	  Generic table filter. Send JSON key/value pairs, such as `{"key": "value"}`. You can key on individual fields, and do more advanced querying on timestamps. See the [Timestamp Docs](https://www.bitmex.com/app/restAPI#Timestamp-Filters) for more details.

	*/
	Filter *string
	/*Reverse
	  If true, will sort results newest first.

	*/
	Reverse *bool
	/*Start
	  Starting point for results.

	*/
	Start *int32
	/*StartTime
	  Starting date filter for results.

	*/
	StartTime *strfmt.DateTime
	/*Symbol
	  Instrument symbol. Send a bare series (e.g. XBU) to get data for the nearest expiring contract in that series.

	You can also send a timeframe, e.g. `XBU:monthly`. Timeframes are `daily`, `weekly`, `monthly`, `quarterly`, and `biquarterly`.

	*/
	Symbol *string

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

ExecutionGetTradeHistoryParams contains all the parameters to send to the API endpoint for the execution get trade history operation typically these are written to a http.Request

func NewExecutionGetTradeHistoryParams

func NewExecutionGetTradeHistoryParams() *ExecutionGetTradeHistoryParams

NewExecutionGetTradeHistoryParams creates a new ExecutionGetTradeHistoryParams object with the default values initialized.

func NewExecutionGetTradeHistoryParamsWithContext

func NewExecutionGetTradeHistoryParamsWithContext(ctx context.Context) *ExecutionGetTradeHistoryParams

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

func NewExecutionGetTradeHistoryParamsWithHTTPClient

func NewExecutionGetTradeHistoryParamsWithHTTPClient(client *http.Client) *ExecutionGetTradeHistoryParams

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

func NewExecutionGetTradeHistoryParamsWithTimeout

func NewExecutionGetTradeHistoryParamsWithTimeout(timeout time.Duration) *ExecutionGetTradeHistoryParams

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

func (*ExecutionGetTradeHistoryParams) SetColumns

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

SetColumns adds the columns to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetContext

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

SetContext adds the context to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetCount

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

SetCount adds the count to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetEndTime

func (o *ExecutionGetTradeHistoryParams) SetEndTime(endTime *strfmt.DateTime)

SetEndTime adds the endTime to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetFilter

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

SetFilter adds the filter to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetReverse

func (o *ExecutionGetTradeHistoryParams) SetReverse(reverse *bool)

SetReverse adds the reverse to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetStart

func (o *ExecutionGetTradeHistoryParams) SetStart(start *int32)

SetStart adds the start to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetStartTime

func (o *ExecutionGetTradeHistoryParams) SetStartTime(startTime *strfmt.DateTime)

SetStartTime adds the startTime to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetSymbol

func (o *ExecutionGetTradeHistoryParams) SetSymbol(symbol *string)

SetSymbol adds the symbol to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) SetTimeout

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

SetTimeout adds the timeout to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithColumns

WithColumns adds the columns to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithContext

WithContext adds the context to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithCount

WithCount adds the count to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithEndTime

WithEndTime adds the endTime to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithFilter

WithFilter adds the filter to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithReverse

WithReverse adds the reverse to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithStart

WithStart adds the start to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithStartTime

WithStartTime adds the startTime to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithSymbol

WithSymbol adds the symbol to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WithTimeout

WithTimeout adds the timeout to the execution get trade history params

func (*ExecutionGetTradeHistoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ExecutionGetTradeHistoryReader

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

ExecutionGetTradeHistoryReader is a Reader for the ExecutionGetTradeHistory structure.

func (*ExecutionGetTradeHistoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ExecutionGetTradeHistoryUnauthorized

type ExecutionGetTradeHistoryUnauthorized struct {
	Payload *models.Error
}

ExecutionGetTradeHistoryUnauthorized handles this case with default header values.

Unauthorized

func NewExecutionGetTradeHistoryUnauthorized

func NewExecutionGetTradeHistoryUnauthorized() *ExecutionGetTradeHistoryUnauthorized

NewExecutionGetTradeHistoryUnauthorized creates a ExecutionGetTradeHistoryUnauthorized with default headers values

func (*ExecutionGetTradeHistoryUnauthorized) Error

type ExecutionGetUnauthorized

type ExecutionGetUnauthorized struct {
	Payload *models.Error
}

ExecutionGetUnauthorized handles this case with default header values.

Unauthorized

func NewExecutionGetUnauthorized

func NewExecutionGetUnauthorized() *ExecutionGetUnauthorized

NewExecutionGetUnauthorized creates a ExecutionGetUnauthorized with default headers values

func (*ExecutionGetUnauthorized) Error

func (o *ExecutionGetUnauthorized) Error() string

Jump to

Keyboard shortcuts

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