insurance

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 insurance API

func New

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

New creates a new insurance API client.

func (*Client) InsuranceGet

func (a *Client) InsuranceGet(params *InsuranceGetParams) (*InsuranceGetOK, error)

InsuranceGet gets insurance fund history

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type InsuranceGetBadRequest

type InsuranceGetBadRequest struct {
	Payload *models.Error
}

InsuranceGetBadRequest handles this case with default header values.

Parameter Error

func NewInsuranceGetBadRequest

func NewInsuranceGetBadRequest() *InsuranceGetBadRequest

NewInsuranceGetBadRequest creates a InsuranceGetBadRequest with default headers values

func (*InsuranceGetBadRequest) Error

func (o *InsuranceGetBadRequest) Error() string

type InsuranceGetNotFound

type InsuranceGetNotFound struct {
	Payload *models.Error
}

InsuranceGetNotFound handles this case with default header values.

Not Found

func NewInsuranceGetNotFound

func NewInsuranceGetNotFound() *InsuranceGetNotFound

NewInsuranceGetNotFound creates a InsuranceGetNotFound with default headers values

func (*InsuranceGetNotFound) Error

func (o *InsuranceGetNotFound) Error() string

type InsuranceGetOK

type InsuranceGetOK struct {
	Payload []*models.Insurance
}

InsuranceGetOK handles this case with default header values.

Request was successful

func NewInsuranceGetOK

func NewInsuranceGetOK() *InsuranceGetOK

NewInsuranceGetOK creates a InsuranceGetOK with default headers values

func (*InsuranceGetOK) Error

func (o *InsuranceGetOK) Error() string

type InsuranceGetParams

type InsuranceGetParams 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
}

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

func NewInsuranceGetParams

func NewInsuranceGetParams() *InsuranceGetParams

NewInsuranceGetParams creates a new InsuranceGetParams object with the default values initialized.

func NewInsuranceGetParamsWithContext

func NewInsuranceGetParamsWithContext(ctx context.Context) *InsuranceGetParams

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

func NewInsuranceGetParamsWithHTTPClient

func NewInsuranceGetParamsWithHTTPClient(client *http.Client) *InsuranceGetParams

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

func NewInsuranceGetParamsWithTimeout

func NewInsuranceGetParamsWithTimeout(timeout time.Duration) *InsuranceGetParams

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

func (*InsuranceGetParams) SetColumns

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

SetColumns adds the columns to the insurance get params

func (*InsuranceGetParams) SetContext

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

SetContext adds the context to the insurance get params

func (*InsuranceGetParams) SetCount

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

SetCount adds the count to the insurance get params

func (*InsuranceGetParams) SetEndTime

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

SetEndTime adds the endTime to the insurance get params

func (*InsuranceGetParams) SetFilter

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

SetFilter adds the filter to the insurance get params

func (*InsuranceGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the insurance get params

func (*InsuranceGetParams) SetReverse

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

SetReverse adds the reverse to the insurance get params

func (*InsuranceGetParams) SetStart

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

SetStart adds the start to the insurance get params

func (*InsuranceGetParams) SetStartTime

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

SetStartTime adds the startTime to the insurance get params

func (*InsuranceGetParams) SetSymbol

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

SetSymbol adds the symbol to the insurance get params

func (*InsuranceGetParams) SetTimeout

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

SetTimeout adds the timeout to the insurance get params

func (*InsuranceGetParams) WithColumns

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

WithColumns adds the columns to the insurance get params

func (*InsuranceGetParams) WithContext

WithContext adds the context to the insurance get params

func (*InsuranceGetParams) WithCount

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

WithCount adds the count to the insurance get params

func (*InsuranceGetParams) WithEndTime

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

WithEndTime adds the endTime to the insurance get params

func (*InsuranceGetParams) WithFilter

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

WithFilter adds the filter to the insurance get params

func (*InsuranceGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the insurance get params

func (*InsuranceGetParams) WithReverse

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

WithReverse adds the reverse to the insurance get params

func (*InsuranceGetParams) WithStart

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

WithStart adds the start to the insurance get params

func (*InsuranceGetParams) WithStartTime

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

WithStartTime adds the startTime to the insurance get params

func (*InsuranceGetParams) WithSymbol

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

WithSymbol adds the symbol to the insurance get params

func (*InsuranceGetParams) WithTimeout

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

WithTimeout adds the timeout to the insurance get params

func (*InsuranceGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InsuranceGetReader

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

InsuranceGetReader is a Reader for the InsuranceGet structure.

func (*InsuranceGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InsuranceGetUnauthorized

type InsuranceGetUnauthorized struct {
	Payload *models.Error
}

InsuranceGetUnauthorized handles this case with default header values.

Unauthorized

func NewInsuranceGetUnauthorized

func NewInsuranceGetUnauthorized() *InsuranceGetUnauthorized

NewInsuranceGetUnauthorized creates a InsuranceGetUnauthorized with default headers values

func (*InsuranceGetUnauthorized) Error

func (o *InsuranceGetUnauthorized) Error() string

Jump to

Keyboard shortcuts

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