Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) StatsGet(params *StatsGetParams) (*StatsGetOK, error)
- func (a *Client) StatsHistory(params *StatsHistoryParams) (*StatsHistoryOK, error)
- func (a *Client) StatsHistoryUSD(params *StatsHistoryUSDParams) (*StatsHistoryUSDOK, error)
- type StatsGetBadRequest
- type StatsGetNotFound
- type StatsGetOK
- type StatsGetParams
- func (o *StatsGetParams) SetContext(ctx context.Context)
- func (o *StatsGetParams) SetHTTPClient(client *http.Client)
- func (o *StatsGetParams) SetTimeout(timeout time.Duration)
- func (o *StatsGetParams) WithContext(ctx context.Context) *StatsGetParams
- func (o *StatsGetParams) WithHTTPClient(client *http.Client) *StatsGetParams
- func (o *StatsGetParams) WithTimeout(timeout time.Duration) *StatsGetParams
- func (o *StatsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StatsGetReader
- type StatsGetUnauthorized
- type StatsHistoryBadRequest
- type StatsHistoryNotFound
- type StatsHistoryOK
- type StatsHistoryParams
- func (o *StatsHistoryParams) SetContext(ctx context.Context)
- func (o *StatsHistoryParams) SetHTTPClient(client *http.Client)
- func (o *StatsHistoryParams) SetTimeout(timeout time.Duration)
- func (o *StatsHistoryParams) WithContext(ctx context.Context) *StatsHistoryParams
- func (o *StatsHistoryParams) WithHTTPClient(client *http.Client) *StatsHistoryParams
- func (o *StatsHistoryParams) WithTimeout(timeout time.Duration) *StatsHistoryParams
- func (o *StatsHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StatsHistoryReader
- type StatsHistoryUSDBadRequest
- type StatsHistoryUSDNotFound
- type StatsHistoryUSDOK
- type StatsHistoryUSDParams
- func NewStatsHistoryUSDParams() *StatsHistoryUSDParams
- func NewStatsHistoryUSDParamsWithContext(ctx context.Context) *StatsHistoryUSDParams
- func NewStatsHistoryUSDParamsWithHTTPClient(client *http.Client) *StatsHistoryUSDParams
- func NewStatsHistoryUSDParamsWithTimeout(timeout time.Duration) *StatsHistoryUSDParams
- func (o *StatsHistoryUSDParams) SetContext(ctx context.Context)
- func (o *StatsHistoryUSDParams) SetHTTPClient(client *http.Client)
- func (o *StatsHistoryUSDParams) SetTimeout(timeout time.Duration)
- func (o *StatsHistoryUSDParams) WithContext(ctx context.Context) *StatsHistoryUSDParams
- func (o *StatsHistoryUSDParams) WithHTTPClient(client *http.Client) *StatsHistoryUSDParams
- func (o *StatsHistoryUSDParams) WithTimeout(timeout time.Duration) *StatsHistoryUSDParams
- func (o *StatsHistoryUSDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StatsHistoryUSDReader
- type StatsHistoryUSDUnauthorized
- type StatsHistoryUnauthorized
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 ¶
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 ¶
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 ¶
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 {
}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 ¶
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 ¶
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 ¶
func (o *StatsHistoryParams) WithContext(ctx context.Context) *StatsHistoryParams
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 ¶
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 ¶
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 ¶
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 ¶
func (o *StatsHistoryUSDParams) WithContext(ctx context.Context) *StatsHistoryUSDParams
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 {
}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 ¶
func (o *StatsHistoryUSDUnauthorized) Error() string
type StatsHistoryUnauthorized ¶
type StatsHistoryUnauthorized struct {
}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