trades

package
v0.0.0-...-b0d199b Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2019 License: Apache-2.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 trades API

func New

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

New creates a new trades API client.

func (*Client) GetAccountTrades

func (a *Client) GetAccountTrades(params *GetAccountTradesParams) (*GetAccountTradesOK, error)

GetAccountTrades lists of trades for the selected account

Returns a list of trades for the currently selected account for current day and six previous days.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetAccountTradesOK

type GetAccountTradesOK struct {
	Payload []*models.Trade
}

GetAccountTradesOK handles this case with default header values.

An array of trades

func NewGetAccountTradesOK

func NewGetAccountTradesOK() *GetAccountTradesOK

NewGetAccountTradesOK creates a GetAccountTradesOK with default headers values

func (*GetAccountTradesOK) Error

func (o *GetAccountTradesOK) Error() string

func (*GetAccountTradesOK) GetPayload

func (o *GetAccountTradesOK) GetPayload() []*models.Trade

type GetAccountTradesParams

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

GetAccountTradesParams contains all the parameters to send to the API endpoint for the get iserver account trades operation typically these are written to a http.Request

func NewGetAccountTradesParams

func NewGetAccountTradesParams() *GetAccountTradesParams

NewGetAccountTradesParams creates a new GetAccountTradesParams object with the default values initialized.

func NewGetAccountTradesParamsWithContext

func NewGetAccountTradesParamsWithContext(ctx context.Context) *GetAccountTradesParams

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

func NewGetAccountTradesParamsWithHTTPClient

func NewGetAccountTradesParamsWithHTTPClient(client *http.Client) *GetAccountTradesParams

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

func NewGetAccountTradesParamsWithTimeout

func NewGetAccountTradesParamsWithTimeout(timeout time.Duration) *GetAccountTradesParams

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

func (*GetAccountTradesParams) SetContext

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

SetContext adds the context to the get iserver account trades params

func (*GetAccountTradesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get iserver account trades params

func (*GetAccountTradesParams) SetTimeout

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

SetTimeout adds the timeout to the get iserver account trades params

func (*GetAccountTradesParams) WithContext

WithContext adds the context to the get iserver account trades params

func (*GetAccountTradesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get iserver account trades params

func (*GetAccountTradesParams) WithTimeout

WithTimeout adds the timeout to the get iserver account trades params

func (*GetAccountTradesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAccountTradesReader

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

GetAccountTradesReader is a Reader for the GetAccountTrades structure.

func (*GetAccountTradesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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