Documentation ¶
Index ¶
- type Client
- type FundingGetBadRequest
- type FundingGetNotFound
- type FundingGetOK
- type FundingGetParams
- func (o *FundingGetParams) SetColumns(columns *string)
- func (o *FundingGetParams) SetContext(ctx context.Context)
- func (o *FundingGetParams) SetCount(count *int32)
- func (o *FundingGetParams) SetEndTime(endTime *strfmt.DateTime)
- func (o *FundingGetParams) SetFilter(filter *string)
- func (o *FundingGetParams) SetHTTPClient(client *http.Client)
- func (o *FundingGetParams) SetReverse(reverse *bool)
- func (o *FundingGetParams) SetStart(start *int32)
- func (o *FundingGetParams) SetStartTime(startTime *strfmt.DateTime)
- func (o *FundingGetParams) SetSymbol(symbol *string)
- func (o *FundingGetParams) SetTimeout(timeout time.Duration)
- func (o *FundingGetParams) WithColumns(columns *string) *FundingGetParams
- func (o *FundingGetParams) WithContext(ctx context.Context) *FundingGetParams
- func (o *FundingGetParams) WithCount(count *int32) *FundingGetParams
- func (o *FundingGetParams) WithEndTime(endTime *strfmt.DateTime) *FundingGetParams
- func (o *FundingGetParams) WithFilter(filter *string) *FundingGetParams
- func (o *FundingGetParams) WithHTTPClient(client *http.Client) *FundingGetParams
- func (o *FundingGetParams) WithReverse(reverse *bool) *FundingGetParams
- func (o *FundingGetParams) WithStart(start *int32) *FundingGetParams
- func (o *FundingGetParams) WithStartTime(startTime *strfmt.DateTime) *FundingGetParams
- func (o *FundingGetParams) WithSymbol(symbol *string) *FundingGetParams
- func (o *FundingGetParams) WithTimeout(timeout time.Duration) *FundingGetParams
- func (o *FundingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FundingGetReader
- type FundingGetUnauthorized
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 funding API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new funding API client.
func (*Client) FundingGet ¶
func (a *Client) FundingGet(params *FundingGetParams) (*FundingGetOK, error)
FundingGet gets funding history
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type FundingGetBadRequest ¶
FundingGetBadRequest handles this case with default header values.
Parameter Error
func NewFundingGetBadRequest ¶
func NewFundingGetBadRequest() *FundingGetBadRequest
NewFundingGetBadRequest creates a FundingGetBadRequest with default headers values
func (*FundingGetBadRequest) Error ¶
func (o *FundingGetBadRequest) Error() string
type FundingGetNotFound ¶
FundingGetNotFound handles this case with default header values.
Not Found
func NewFundingGetNotFound ¶
func NewFundingGetNotFound() *FundingGetNotFound
NewFundingGetNotFound creates a FundingGetNotFound with default headers values
func (*FundingGetNotFound) Error ¶
func (o *FundingGetNotFound) Error() string
type FundingGetOK ¶
FundingGetOK handles this case with default header values.
Request was successful
func NewFundingGetOK ¶
func NewFundingGetOK() *FundingGetOK
NewFundingGetOK creates a FundingGetOK with default headers values
func (*FundingGetOK) Error ¶
func (o *FundingGetOK) Error() string
type FundingGetParams ¶
type FundingGetParams 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 }
FundingGetParams contains all the parameters to send to the API endpoint for the funding get operation typically these are written to a http.Request
func NewFundingGetParams ¶
func NewFundingGetParams() *FundingGetParams
NewFundingGetParams creates a new FundingGetParams object with the default values initialized.
func NewFundingGetParamsWithContext ¶
func NewFundingGetParamsWithContext(ctx context.Context) *FundingGetParams
NewFundingGetParamsWithContext creates a new FundingGetParams object with the default values initialized, and the ability to set a context for a request
func NewFundingGetParamsWithHTTPClient ¶
func NewFundingGetParamsWithHTTPClient(client *http.Client) *FundingGetParams
NewFundingGetParamsWithHTTPClient creates a new FundingGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewFundingGetParamsWithTimeout ¶
func NewFundingGetParamsWithTimeout(timeout time.Duration) *FundingGetParams
NewFundingGetParamsWithTimeout creates a new FundingGetParams object with the default values initialized, and the ability to set a timeout on a request
func (*FundingGetParams) SetColumns ¶
func (o *FundingGetParams) SetColumns(columns *string)
SetColumns adds the columns to the funding get params
func (*FundingGetParams) SetContext ¶
func (o *FundingGetParams) SetContext(ctx context.Context)
SetContext adds the context to the funding get params
func (*FundingGetParams) SetCount ¶
func (o *FundingGetParams) SetCount(count *int32)
SetCount adds the count to the funding get params
func (*FundingGetParams) SetEndTime ¶
func (o *FundingGetParams) SetEndTime(endTime *strfmt.DateTime)
SetEndTime adds the endTime to the funding get params
func (*FundingGetParams) SetFilter ¶
func (o *FundingGetParams) SetFilter(filter *string)
SetFilter adds the filter to the funding get params
func (*FundingGetParams) SetHTTPClient ¶
func (o *FundingGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the funding get params
func (*FundingGetParams) SetReverse ¶
func (o *FundingGetParams) SetReverse(reverse *bool)
SetReverse adds the reverse to the funding get params
func (*FundingGetParams) SetStart ¶
func (o *FundingGetParams) SetStart(start *int32)
SetStart adds the start to the funding get params
func (*FundingGetParams) SetStartTime ¶
func (o *FundingGetParams) SetStartTime(startTime *strfmt.DateTime)
SetStartTime adds the startTime to the funding get params
func (*FundingGetParams) SetSymbol ¶
func (o *FundingGetParams) SetSymbol(symbol *string)
SetSymbol adds the symbol to the funding get params
func (*FundingGetParams) SetTimeout ¶
func (o *FundingGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the funding get params
func (*FundingGetParams) WithColumns ¶
func (o *FundingGetParams) WithColumns(columns *string) *FundingGetParams
WithColumns adds the columns to the funding get params
func (*FundingGetParams) WithContext ¶
func (o *FundingGetParams) WithContext(ctx context.Context) *FundingGetParams
WithContext adds the context to the funding get params
func (*FundingGetParams) WithCount ¶
func (o *FundingGetParams) WithCount(count *int32) *FundingGetParams
WithCount adds the count to the funding get params
func (*FundingGetParams) WithEndTime ¶
func (o *FundingGetParams) WithEndTime(endTime *strfmt.DateTime) *FundingGetParams
WithEndTime adds the endTime to the funding get params
func (*FundingGetParams) WithFilter ¶
func (o *FundingGetParams) WithFilter(filter *string) *FundingGetParams
WithFilter adds the filter to the funding get params
func (*FundingGetParams) WithHTTPClient ¶
func (o *FundingGetParams) WithHTTPClient(client *http.Client) *FundingGetParams
WithHTTPClient adds the HTTPClient to the funding get params
func (*FundingGetParams) WithReverse ¶
func (o *FundingGetParams) WithReverse(reverse *bool) *FundingGetParams
WithReverse adds the reverse to the funding get params
func (*FundingGetParams) WithStart ¶
func (o *FundingGetParams) WithStart(start *int32) *FundingGetParams
WithStart adds the start to the funding get params
func (*FundingGetParams) WithStartTime ¶
func (o *FundingGetParams) WithStartTime(startTime *strfmt.DateTime) *FundingGetParams
WithStartTime adds the startTime to the funding get params
func (*FundingGetParams) WithSymbol ¶
func (o *FundingGetParams) WithSymbol(symbol *string) *FundingGetParams
WithSymbol adds the symbol to the funding get params
func (*FundingGetParams) WithTimeout ¶
func (o *FundingGetParams) WithTimeout(timeout time.Duration) *FundingGetParams
WithTimeout adds the timeout to the funding get params
func (*FundingGetParams) WriteToRequest ¶
func (o *FundingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FundingGetReader ¶
type FundingGetReader struct {
// contains filtered or unexported fields
}
FundingGetReader is a Reader for the FundingGet structure.
func (*FundingGetReader) ReadResponse ¶
func (o *FundingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FundingGetUnauthorized ¶
type FundingGetUnauthorized struct {
}FundingGetUnauthorized handles this case with default header values.
Unauthorized
func NewFundingGetUnauthorized ¶
func NewFundingGetUnauthorized() *FundingGetUnauthorized
NewFundingGetUnauthorized creates a FundingGetUnauthorized with default headers values
func (*FundingGetUnauthorized) Error ¶
func (o *FundingGetUnauthorized) Error() string