Documentation ¶
Index ¶
- type Client
- type SettlementGetBadRequest
- type SettlementGetNotFound
- type SettlementGetOK
- type SettlementGetParams
- func (o *SettlementGetParams) SetColumns(columns *string)
- func (o *SettlementGetParams) SetContext(ctx context.Context)
- func (o *SettlementGetParams) SetCount(count *int32)
- func (o *SettlementGetParams) SetEndTime(endTime *strfmt.DateTime)
- func (o *SettlementGetParams) SetFilter(filter *string)
- func (o *SettlementGetParams) SetHTTPClient(client *http.Client)
- func (o *SettlementGetParams) SetReverse(reverse *bool)
- func (o *SettlementGetParams) SetStart(start *int32)
- func (o *SettlementGetParams) SetStartTime(startTime *strfmt.DateTime)
- func (o *SettlementGetParams) SetSymbol(symbol *string)
- func (o *SettlementGetParams) SetTimeout(timeout time.Duration)
- func (o *SettlementGetParams) WithColumns(columns *string) *SettlementGetParams
- func (o *SettlementGetParams) WithContext(ctx context.Context) *SettlementGetParams
- func (o *SettlementGetParams) WithCount(count *int32) *SettlementGetParams
- func (o *SettlementGetParams) WithEndTime(endTime *strfmt.DateTime) *SettlementGetParams
- func (o *SettlementGetParams) WithFilter(filter *string) *SettlementGetParams
- func (o *SettlementGetParams) WithHTTPClient(client *http.Client) *SettlementGetParams
- func (o *SettlementGetParams) WithReverse(reverse *bool) *SettlementGetParams
- func (o *SettlementGetParams) WithStart(start *int32) *SettlementGetParams
- func (o *SettlementGetParams) WithStartTime(startTime *strfmt.DateTime) *SettlementGetParams
- func (o *SettlementGetParams) WithSymbol(symbol *string) *SettlementGetParams
- func (o *SettlementGetParams) WithTimeout(timeout time.Duration) *SettlementGetParams
- func (o *SettlementGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SettlementGetReader
- type SettlementGetUnauthorized
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 settlement API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new settlement API client.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) SettlementGet ¶
func (a *Client) SettlementGet(params *SettlementGetParams) (*SettlementGetOK, error)
SettlementGet gets settlement history
type SettlementGetBadRequest ¶
SettlementGetBadRequest handles this case with default header values.
Parameter Error
func NewSettlementGetBadRequest ¶
func NewSettlementGetBadRequest() *SettlementGetBadRequest
NewSettlementGetBadRequest creates a SettlementGetBadRequest with default headers values
func (*SettlementGetBadRequest) Error ¶
func (o *SettlementGetBadRequest) Error() string
type SettlementGetNotFound ¶
SettlementGetNotFound handles this case with default header values.
Not Found
func NewSettlementGetNotFound ¶
func NewSettlementGetNotFound() *SettlementGetNotFound
NewSettlementGetNotFound creates a SettlementGetNotFound with default headers values
func (*SettlementGetNotFound) Error ¶
func (o *SettlementGetNotFound) Error() string
type SettlementGetOK ¶
type SettlementGetOK struct {
Payload []*models.Settlement
}
SettlementGetOK handles this case with default header values.
Request was successful
func NewSettlementGetOK ¶
func NewSettlementGetOK() *SettlementGetOK
NewSettlementGetOK creates a SettlementGetOK with default headers values
func (*SettlementGetOK) Error ¶
func (o *SettlementGetOK) Error() string
type SettlementGetParams ¶
type SettlementGetParams 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 }
SettlementGetParams contains all the parameters to send to the API endpoint for the settlement get operation typically these are written to a http.Request
func NewSettlementGetParams ¶
func NewSettlementGetParams() *SettlementGetParams
NewSettlementGetParams creates a new SettlementGetParams object with the default values initialized.
func NewSettlementGetParamsWithContext ¶
func NewSettlementGetParamsWithContext(ctx context.Context) *SettlementGetParams
NewSettlementGetParamsWithContext creates a new SettlementGetParams object with the default values initialized, and the ability to set a context for a request
func NewSettlementGetParamsWithHTTPClient ¶
func NewSettlementGetParamsWithHTTPClient(client *http.Client) *SettlementGetParams
NewSettlementGetParamsWithHTTPClient creates a new SettlementGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSettlementGetParamsWithTimeout ¶
func NewSettlementGetParamsWithTimeout(timeout time.Duration) *SettlementGetParams
NewSettlementGetParamsWithTimeout creates a new SettlementGetParams object with the default values initialized, and the ability to set a timeout on a request
func (*SettlementGetParams) SetColumns ¶
func (o *SettlementGetParams) SetColumns(columns *string)
SetColumns adds the columns to the settlement get params
func (*SettlementGetParams) SetContext ¶
func (o *SettlementGetParams) SetContext(ctx context.Context)
SetContext adds the context to the settlement get params
func (*SettlementGetParams) SetCount ¶
func (o *SettlementGetParams) SetCount(count *int32)
SetCount adds the count to the settlement get params
func (*SettlementGetParams) SetEndTime ¶
func (o *SettlementGetParams) SetEndTime(endTime *strfmt.DateTime)
SetEndTime adds the endTime to the settlement get params
func (*SettlementGetParams) SetFilter ¶
func (o *SettlementGetParams) SetFilter(filter *string)
SetFilter adds the filter to the settlement get params
func (*SettlementGetParams) SetHTTPClient ¶
func (o *SettlementGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the settlement get params
func (*SettlementGetParams) SetReverse ¶
func (o *SettlementGetParams) SetReverse(reverse *bool)
SetReverse adds the reverse to the settlement get params
func (*SettlementGetParams) SetStart ¶
func (o *SettlementGetParams) SetStart(start *int32)
SetStart adds the start to the settlement get params
func (*SettlementGetParams) SetStartTime ¶
func (o *SettlementGetParams) SetStartTime(startTime *strfmt.DateTime)
SetStartTime adds the startTime to the settlement get params
func (*SettlementGetParams) SetSymbol ¶
func (o *SettlementGetParams) SetSymbol(symbol *string)
SetSymbol adds the symbol to the settlement get params
func (*SettlementGetParams) SetTimeout ¶
func (o *SettlementGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the settlement get params
func (*SettlementGetParams) WithColumns ¶
func (o *SettlementGetParams) WithColumns(columns *string) *SettlementGetParams
WithColumns adds the columns to the settlement get params
func (*SettlementGetParams) WithContext ¶
func (o *SettlementGetParams) WithContext(ctx context.Context) *SettlementGetParams
WithContext adds the context to the settlement get params
func (*SettlementGetParams) WithCount ¶
func (o *SettlementGetParams) WithCount(count *int32) *SettlementGetParams
WithCount adds the count to the settlement get params
func (*SettlementGetParams) WithEndTime ¶
func (o *SettlementGetParams) WithEndTime(endTime *strfmt.DateTime) *SettlementGetParams
WithEndTime adds the endTime to the settlement get params
func (*SettlementGetParams) WithFilter ¶
func (o *SettlementGetParams) WithFilter(filter *string) *SettlementGetParams
WithFilter adds the filter to the settlement get params
func (*SettlementGetParams) WithHTTPClient ¶
func (o *SettlementGetParams) WithHTTPClient(client *http.Client) *SettlementGetParams
WithHTTPClient adds the HTTPClient to the settlement get params
func (*SettlementGetParams) WithReverse ¶
func (o *SettlementGetParams) WithReverse(reverse *bool) *SettlementGetParams
WithReverse adds the reverse to the settlement get params
func (*SettlementGetParams) WithStart ¶
func (o *SettlementGetParams) WithStart(start *int32) *SettlementGetParams
WithStart adds the start to the settlement get params
func (*SettlementGetParams) WithStartTime ¶
func (o *SettlementGetParams) WithStartTime(startTime *strfmt.DateTime) *SettlementGetParams
WithStartTime adds the startTime to the settlement get params
func (*SettlementGetParams) WithSymbol ¶
func (o *SettlementGetParams) WithSymbol(symbol *string) *SettlementGetParams
WithSymbol adds the symbol to the settlement get params
func (*SettlementGetParams) WithTimeout ¶
func (o *SettlementGetParams) WithTimeout(timeout time.Duration) *SettlementGetParams
WithTimeout adds the timeout to the settlement get params
func (*SettlementGetParams) WriteToRequest ¶
func (o *SettlementGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SettlementGetReader ¶
type SettlementGetReader struct {
// contains filtered or unexported fields
}
SettlementGetReader is a Reader for the SettlementGet structure.
func (*SettlementGetReader) ReadResponse ¶
func (o *SettlementGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SettlementGetUnauthorized ¶
type SettlementGetUnauthorized struct {
}SettlementGetUnauthorized handles this case with default header values.
Unauthorized
func NewSettlementGetUnauthorized ¶
func NewSettlementGetUnauthorized() *SettlementGetUnauthorized
NewSettlementGetUnauthorized creates a SettlementGetUnauthorized with default headers values
func (*SettlementGetUnauthorized) Error ¶
func (o *SettlementGetUnauthorized) Error() string