Documentation ¶
Index ¶
- type Client
- type GetAccountTradesOK
- type GetAccountTradesParams
- func NewGetAccountTradesParams() *GetAccountTradesParams
- func NewGetAccountTradesParamsWithContext(ctx context.Context) *GetAccountTradesParams
- func NewGetAccountTradesParamsWithHTTPClient(client *http.Client) *GetAccountTradesParams
- func NewGetAccountTradesParamsWithTimeout(timeout time.Duration) *GetAccountTradesParams
- func (o *GetAccountTradesParams) SetContext(ctx context.Context)
- func (o *GetAccountTradesParams) SetHTTPClient(client *http.Client)
- func (o *GetAccountTradesParams) SetTimeout(timeout time.Duration)
- func (o *GetAccountTradesParams) WithContext(ctx context.Context) *GetAccountTradesParams
- func (o *GetAccountTradesParams) WithHTTPClient(client *http.Client) *GetAccountTradesParams
- func (o *GetAccountTradesParams) WithTimeout(timeout time.Duration) *GetAccountTradesParams
- func (o *GetAccountTradesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAccountTradesReader
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 ¶
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 ¶
func (o *GetAccountTradesParams) WithContext(ctx context.Context) *GetAccountTradesParams
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 ¶
func (o *GetAccountTradesParams) WithTimeout(timeout time.Duration) *GetAccountTradesParams
WithTimeout adds the timeout to the get iserver account trades params
func (*GetAccountTradesParams) WriteToRequest ¶
func (o *GetAccountTradesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.