stats

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: 10 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 stats API

func New

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

New creates a new stats API client.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StatsGet

func (a *Client) StatsGet(params *StatsGetParams) (*StatsGetOK, error)

StatsGet gets exchange wide and per series turnover and volume statistics

func (*Client) StatsHistory

func (a *Client) StatsHistory(params *StatsHistoryParams) (*StatsHistoryOK, error)

StatsHistory gets historical exchange wide and per series turnover and volume statistics

func (*Client) StatsHistoryUSD

func (a *Client) StatsHistoryUSD(params *StatsHistoryUSDParams) (*StatsHistoryUSDOK, error)

StatsHistoryUSD gets a summary of exchange statistics in u s d

type StatsGetBadRequest

type StatsGetBadRequest struct {
	Payload *models.Error
}

StatsGetBadRequest handles this case with default header values.

Parameter Error

func NewStatsGetBadRequest

func NewStatsGetBadRequest() *StatsGetBadRequest

NewStatsGetBadRequest creates a StatsGetBadRequest with default headers values

func (*StatsGetBadRequest) Error

func (o *StatsGetBadRequest) Error() string

type StatsGetNotFound

type StatsGetNotFound struct {
	Payload *models.Error
}

StatsGetNotFound handles this case with default header values.

Not Found

func NewStatsGetNotFound

func NewStatsGetNotFound() *StatsGetNotFound

NewStatsGetNotFound creates a StatsGetNotFound with default headers values

func (*StatsGetNotFound) Error

func (o *StatsGetNotFound) Error() string

type StatsGetOK

type StatsGetOK struct {
	Payload []*models.Stats
}

StatsGetOK handles this case with default header values.

Request was successful

func NewStatsGetOK

func NewStatsGetOK() *StatsGetOK

NewStatsGetOK creates a StatsGetOK with default headers values

func (*StatsGetOK) Error

func (o *StatsGetOK) Error() string

type StatsGetParams

type StatsGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

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

func NewStatsGetParams

func NewStatsGetParams() *StatsGetParams

NewStatsGetParams creates a new StatsGetParams object with the default values initialized.

func NewStatsGetParamsWithContext

func NewStatsGetParamsWithContext(ctx context.Context) *StatsGetParams

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

func NewStatsGetParamsWithHTTPClient

func NewStatsGetParamsWithHTTPClient(client *http.Client) *StatsGetParams

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

func NewStatsGetParamsWithTimeout

func NewStatsGetParamsWithTimeout(timeout time.Duration) *StatsGetParams

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

func (*StatsGetParams) SetContext

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

SetContext adds the context to the stats get params

func (*StatsGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stats get params

func (*StatsGetParams) SetTimeout

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

SetTimeout adds the timeout to the stats get params

func (*StatsGetParams) WithContext

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

WithContext adds the context to the stats get params

func (*StatsGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stats get params

func (*StatsGetParams) WithTimeout

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

WithTimeout adds the timeout to the stats get params

func (*StatsGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StatsGetReader

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

StatsGetReader is a Reader for the StatsGet structure.

func (*StatsGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StatsGetUnauthorized

type StatsGetUnauthorized struct {
	Payload *models.Error
}

StatsGetUnauthorized handles this case with default header values.

Unauthorized

func NewStatsGetUnauthorized

func NewStatsGetUnauthorized() *StatsGetUnauthorized

NewStatsGetUnauthorized creates a StatsGetUnauthorized with default headers values

func (*StatsGetUnauthorized) Error

func (o *StatsGetUnauthorized) Error() string

type StatsHistoryBadRequest

type StatsHistoryBadRequest struct {
	Payload *models.Error
}

StatsHistoryBadRequest handles this case with default header values.

Parameter Error

func NewStatsHistoryBadRequest

func NewStatsHistoryBadRequest() *StatsHistoryBadRequest

NewStatsHistoryBadRequest creates a StatsHistoryBadRequest with default headers values

func (*StatsHistoryBadRequest) Error

func (o *StatsHistoryBadRequest) Error() string

type StatsHistoryNotFound

type StatsHistoryNotFound struct {
	Payload *models.Error
}

StatsHistoryNotFound handles this case with default header values.

Not Found

func NewStatsHistoryNotFound

func NewStatsHistoryNotFound() *StatsHistoryNotFound

NewStatsHistoryNotFound creates a StatsHistoryNotFound with default headers values

func (*StatsHistoryNotFound) Error

func (o *StatsHistoryNotFound) Error() string

type StatsHistoryOK

type StatsHistoryOK struct {
	Payload []*models.StatsHistory
}

StatsHistoryOK handles this case with default header values.

Request was successful

func NewStatsHistoryOK

func NewStatsHistoryOK() *StatsHistoryOK

NewStatsHistoryOK creates a StatsHistoryOK with default headers values

func (*StatsHistoryOK) Error

func (o *StatsHistoryOK) Error() string

type StatsHistoryParams

type StatsHistoryParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StatsHistoryParams contains all the parameters to send to the API endpoint for the stats history operation typically these are written to a http.Request

func NewStatsHistoryParams

func NewStatsHistoryParams() *StatsHistoryParams

NewStatsHistoryParams creates a new StatsHistoryParams object with the default values initialized.

func NewStatsHistoryParamsWithContext

func NewStatsHistoryParamsWithContext(ctx context.Context) *StatsHistoryParams

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

func NewStatsHistoryParamsWithHTTPClient

func NewStatsHistoryParamsWithHTTPClient(client *http.Client) *StatsHistoryParams

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

func NewStatsHistoryParamsWithTimeout

func NewStatsHistoryParamsWithTimeout(timeout time.Duration) *StatsHistoryParams

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

func (*StatsHistoryParams) SetContext

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

SetContext adds the context to the stats history params

func (*StatsHistoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stats history params

func (*StatsHistoryParams) SetTimeout

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

SetTimeout adds the timeout to the stats history params

func (*StatsHistoryParams) WithContext

WithContext adds the context to the stats history params

func (*StatsHistoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stats history params

func (*StatsHistoryParams) WithTimeout

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

WithTimeout adds the timeout to the stats history params

func (*StatsHistoryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StatsHistoryReader

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

StatsHistoryReader is a Reader for the StatsHistory structure.

func (*StatsHistoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StatsHistoryUSDBadRequest

type StatsHistoryUSDBadRequest struct {
	Payload *models.Error
}

StatsHistoryUSDBadRequest handles this case with default header values.

Parameter Error

func NewStatsHistoryUSDBadRequest

func NewStatsHistoryUSDBadRequest() *StatsHistoryUSDBadRequest

NewStatsHistoryUSDBadRequest creates a StatsHistoryUSDBadRequest with default headers values

func (*StatsHistoryUSDBadRequest) Error

func (o *StatsHistoryUSDBadRequest) Error() string

type StatsHistoryUSDNotFound

type StatsHistoryUSDNotFound struct {
	Payload *models.Error
}

StatsHistoryUSDNotFound handles this case with default header values.

Not Found

func NewStatsHistoryUSDNotFound

func NewStatsHistoryUSDNotFound() *StatsHistoryUSDNotFound

NewStatsHistoryUSDNotFound creates a StatsHistoryUSDNotFound with default headers values

func (*StatsHistoryUSDNotFound) Error

func (o *StatsHistoryUSDNotFound) Error() string

type StatsHistoryUSDOK

type StatsHistoryUSDOK struct {
	Payload []*models.StatsUSD
}

StatsHistoryUSDOK handles this case with default header values.

Request was successful

func NewStatsHistoryUSDOK

func NewStatsHistoryUSDOK() *StatsHistoryUSDOK

NewStatsHistoryUSDOK creates a StatsHistoryUSDOK with default headers values

func (*StatsHistoryUSDOK) Error

func (o *StatsHistoryUSDOK) Error() string

type StatsHistoryUSDParams

type StatsHistoryUSDParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StatsHistoryUSDParams contains all the parameters to send to the API endpoint for the stats history u s d operation typically these are written to a http.Request

func NewStatsHistoryUSDParams

func NewStatsHistoryUSDParams() *StatsHistoryUSDParams

NewStatsHistoryUSDParams creates a new StatsHistoryUSDParams object with the default values initialized.

func NewStatsHistoryUSDParamsWithContext

func NewStatsHistoryUSDParamsWithContext(ctx context.Context) *StatsHistoryUSDParams

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

func NewStatsHistoryUSDParamsWithHTTPClient

func NewStatsHistoryUSDParamsWithHTTPClient(client *http.Client) *StatsHistoryUSDParams

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

func NewStatsHistoryUSDParamsWithTimeout

func NewStatsHistoryUSDParamsWithTimeout(timeout time.Duration) *StatsHistoryUSDParams

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

func (*StatsHistoryUSDParams) SetContext

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

SetContext adds the context to the stats history u s d params

func (*StatsHistoryUSDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stats history u s d params

func (*StatsHistoryUSDParams) SetTimeout

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

SetTimeout adds the timeout to the stats history u s d params

func (*StatsHistoryUSDParams) WithContext

WithContext adds the context to the stats history u s d params

func (*StatsHistoryUSDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stats history u s d params

func (*StatsHistoryUSDParams) WithTimeout

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

WithTimeout adds the timeout to the stats history u s d params

func (*StatsHistoryUSDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StatsHistoryUSDReader

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

StatsHistoryUSDReader is a Reader for the StatsHistoryUSD structure.

func (*StatsHistoryUSDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StatsHistoryUSDUnauthorized

type StatsHistoryUSDUnauthorized struct {
	Payload *models.Error
}

StatsHistoryUSDUnauthorized handles this case with default header values.

Unauthorized

func NewStatsHistoryUSDUnauthorized

func NewStatsHistoryUSDUnauthorized() *StatsHistoryUSDUnauthorized

NewStatsHistoryUSDUnauthorized creates a StatsHistoryUSDUnauthorized with default headers values

func (*StatsHistoryUSDUnauthorized) Error

type StatsHistoryUnauthorized

type StatsHistoryUnauthorized struct {
	Payload *models.Error
}

StatsHistoryUnauthorized handles this case with default header values.

Unauthorized

func NewStatsHistoryUnauthorized

func NewStatsHistoryUnauthorized() *StatsHistoryUnauthorized

NewStatsHistoryUnauthorized creates a StatsHistoryUnauthorized with default headers values

func (*StatsHistoryUnauthorized) Error

func (o *StatsHistoryUnauthorized) Error() string

Jump to

Keyboard shortcuts

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