quote

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: LGPL-3.0 Imports: 11 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 quote API

func New

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

New creates a new quote API client.

func (*Client) QuoteGet

func (a *Client) QuoteGet(params *QuoteGetParams) (*QuoteGetOK, error)

QuoteGet gets quotes

func (*Client) QuoteGetBucketed

func (a *Client) QuoteGetBucketed(params *QuoteGetBucketedParams) (*QuoteGetBucketedOK, error)

QuoteGetBucketed gets previous quotes in time buckets

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type QuoteGetBadRequest

type QuoteGetBadRequest struct {
	Payload *models.Error
}

QuoteGetBadRequest handles this case with default header values.

Parameter Error

func NewQuoteGetBadRequest

func NewQuoteGetBadRequest() *QuoteGetBadRequest

NewQuoteGetBadRequest creates a QuoteGetBadRequest with default headers values

func (*QuoteGetBadRequest) Error

func (o *QuoteGetBadRequest) Error() string

type QuoteGetBucketedBadRequest

type QuoteGetBucketedBadRequest struct {
	Payload *models.Error
}

QuoteGetBucketedBadRequest handles this case with default header values.

Parameter Error

func NewQuoteGetBucketedBadRequest

func NewQuoteGetBucketedBadRequest() *QuoteGetBucketedBadRequest

NewQuoteGetBucketedBadRequest creates a QuoteGetBucketedBadRequest with default headers values

func (*QuoteGetBucketedBadRequest) Error

type QuoteGetBucketedNotFound

type QuoteGetBucketedNotFound struct {
	Payload *models.Error
}

QuoteGetBucketedNotFound handles this case with default header values.

Not Found

func NewQuoteGetBucketedNotFound

func NewQuoteGetBucketedNotFound() *QuoteGetBucketedNotFound

NewQuoteGetBucketedNotFound creates a QuoteGetBucketedNotFound with default headers values

func (*QuoteGetBucketedNotFound) Error

func (o *QuoteGetBucketedNotFound) Error() string

type QuoteGetBucketedOK

type QuoteGetBucketedOK struct {
	Payload []*models.Quote
}

QuoteGetBucketedOK handles this case with default header values.

Request was successful

func NewQuoteGetBucketedOK

func NewQuoteGetBucketedOK() *QuoteGetBucketedOK

NewQuoteGetBucketedOK creates a QuoteGetBucketedOK with default headers values

func (*QuoteGetBucketedOK) Error

func (o *QuoteGetBucketedOK) Error() string

type QuoteGetBucketedParams

type QuoteGetBucketedParams struct {

	/*BinSize
	  Time interval to bucket by. Available options: [1m,5m,1h,1d].

	*/
	BinSize *string
	/*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
	/*Partial
	  If true, will send in-progress (incomplete) bins for the current time period.

	*/
	Partial *bool
	/*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
}

QuoteGetBucketedParams contains all the parameters to send to the API endpoint for the quote get bucketed operation typically these are written to a http.Request

func NewQuoteGetBucketedParams

func NewQuoteGetBucketedParams() *QuoteGetBucketedParams

NewQuoteGetBucketedParams creates a new QuoteGetBucketedParams object with the default values initialized.

func NewQuoteGetBucketedParamsWithContext

func NewQuoteGetBucketedParamsWithContext(ctx context.Context) *QuoteGetBucketedParams

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

func NewQuoteGetBucketedParamsWithHTTPClient

func NewQuoteGetBucketedParamsWithHTTPClient(client *http.Client) *QuoteGetBucketedParams

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

func NewQuoteGetBucketedParamsWithTimeout

func NewQuoteGetBucketedParamsWithTimeout(timeout time.Duration) *QuoteGetBucketedParams

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

func (*QuoteGetBucketedParams) SetBinSize

func (o *QuoteGetBucketedParams) SetBinSize(binSize *string)

SetBinSize adds the binSize to the quote get bucketed params

func (*QuoteGetBucketedParams) SetColumns

func (o *QuoteGetBucketedParams) SetColumns(columns *string)

SetColumns adds the columns to the quote get bucketed params

func (*QuoteGetBucketedParams) SetContext

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

SetContext adds the context to the quote get bucketed params

func (*QuoteGetBucketedParams) SetCount

func (o *QuoteGetBucketedParams) SetCount(count *int32)

SetCount adds the count to the quote get bucketed params

func (*QuoteGetBucketedParams) SetEndTime

func (o *QuoteGetBucketedParams) SetEndTime(endTime *strfmt.DateTime)

SetEndTime adds the endTime to the quote get bucketed params

func (*QuoteGetBucketedParams) SetFilter

func (o *QuoteGetBucketedParams) SetFilter(filter *string)

SetFilter adds the filter to the quote get bucketed params

func (*QuoteGetBucketedParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the quote get bucketed params

func (*QuoteGetBucketedParams) SetPartial

func (o *QuoteGetBucketedParams) SetPartial(partial *bool)

SetPartial adds the partial to the quote get bucketed params

func (*QuoteGetBucketedParams) SetReverse

func (o *QuoteGetBucketedParams) SetReverse(reverse *bool)

SetReverse adds the reverse to the quote get bucketed params

func (*QuoteGetBucketedParams) SetStart

func (o *QuoteGetBucketedParams) SetStart(start *int32)

SetStart adds the start to the quote get bucketed params

func (*QuoteGetBucketedParams) SetStartTime

func (o *QuoteGetBucketedParams) SetStartTime(startTime *strfmt.DateTime)

SetStartTime adds the startTime to the quote get bucketed params

func (*QuoteGetBucketedParams) SetSymbol

func (o *QuoteGetBucketedParams) SetSymbol(symbol *string)

SetSymbol adds the symbol to the quote get bucketed params

func (*QuoteGetBucketedParams) SetTimeout

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

SetTimeout adds the timeout to the quote get bucketed params

func (*QuoteGetBucketedParams) WithBinSize

func (o *QuoteGetBucketedParams) WithBinSize(binSize *string) *QuoteGetBucketedParams

WithBinSize adds the binSize to the quote get bucketed params

func (*QuoteGetBucketedParams) WithColumns

func (o *QuoteGetBucketedParams) WithColumns(columns *string) *QuoteGetBucketedParams

WithColumns adds the columns to the quote get bucketed params

func (*QuoteGetBucketedParams) WithContext

WithContext adds the context to the quote get bucketed params

func (*QuoteGetBucketedParams) WithCount

func (o *QuoteGetBucketedParams) WithCount(count *int32) *QuoteGetBucketedParams

WithCount adds the count to the quote get bucketed params

func (*QuoteGetBucketedParams) WithEndTime

WithEndTime adds the endTime to the quote get bucketed params

func (*QuoteGetBucketedParams) WithFilter

func (o *QuoteGetBucketedParams) WithFilter(filter *string) *QuoteGetBucketedParams

WithFilter adds the filter to the quote get bucketed params

func (*QuoteGetBucketedParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the quote get bucketed params

func (*QuoteGetBucketedParams) WithPartial

func (o *QuoteGetBucketedParams) WithPartial(partial *bool) *QuoteGetBucketedParams

WithPartial adds the partial to the quote get bucketed params

func (*QuoteGetBucketedParams) WithReverse

func (o *QuoteGetBucketedParams) WithReverse(reverse *bool) *QuoteGetBucketedParams

WithReverse adds the reverse to the quote get bucketed params

func (*QuoteGetBucketedParams) WithStart

func (o *QuoteGetBucketedParams) WithStart(start *int32) *QuoteGetBucketedParams

WithStart adds the start to the quote get bucketed params

func (*QuoteGetBucketedParams) WithStartTime

func (o *QuoteGetBucketedParams) WithStartTime(startTime *strfmt.DateTime) *QuoteGetBucketedParams

WithStartTime adds the startTime to the quote get bucketed params

func (*QuoteGetBucketedParams) WithSymbol

func (o *QuoteGetBucketedParams) WithSymbol(symbol *string) *QuoteGetBucketedParams

WithSymbol adds the symbol to the quote get bucketed params

func (*QuoteGetBucketedParams) WithTimeout

WithTimeout adds the timeout to the quote get bucketed params

func (*QuoteGetBucketedParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QuoteGetBucketedReader

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

QuoteGetBucketedReader is a Reader for the QuoteGetBucketed structure.

func (*QuoteGetBucketedReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QuoteGetBucketedUnauthorized

type QuoteGetBucketedUnauthorized struct {
	Payload *models.Error
}

QuoteGetBucketedUnauthorized handles this case with default header values.

Unauthorized

func NewQuoteGetBucketedUnauthorized

func NewQuoteGetBucketedUnauthorized() *QuoteGetBucketedUnauthorized

NewQuoteGetBucketedUnauthorized creates a QuoteGetBucketedUnauthorized with default headers values

func (*QuoteGetBucketedUnauthorized) Error

type QuoteGetNotFound

type QuoteGetNotFound struct {
	Payload *models.Error
}

QuoteGetNotFound handles this case with default header values.

Not Found

func NewQuoteGetNotFound

func NewQuoteGetNotFound() *QuoteGetNotFound

NewQuoteGetNotFound creates a QuoteGetNotFound with default headers values

func (*QuoteGetNotFound) Error

func (o *QuoteGetNotFound) Error() string

type QuoteGetOK

type QuoteGetOK struct {
	Payload []*models.Quote
}

QuoteGetOK handles this case with default header values.

Request was successful

func NewQuoteGetOK

func NewQuoteGetOK() *QuoteGetOK

NewQuoteGetOK creates a QuoteGetOK with default headers values

func (*QuoteGetOK) Error

func (o *QuoteGetOK) Error() string

type QuoteGetParams

type QuoteGetParams 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
}

QuoteGetParams contains all the parameters to send to the API endpoint for the quote get operation typically these are written to a http.Request

func NewQuoteGetParams

func NewQuoteGetParams() *QuoteGetParams

NewQuoteGetParams creates a new QuoteGetParams object with the default values initialized.

func NewQuoteGetParamsWithContext

func NewQuoteGetParamsWithContext(ctx context.Context) *QuoteGetParams

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

func NewQuoteGetParamsWithHTTPClient

func NewQuoteGetParamsWithHTTPClient(client *http.Client) *QuoteGetParams

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

func NewQuoteGetParamsWithTimeout

func NewQuoteGetParamsWithTimeout(timeout time.Duration) *QuoteGetParams

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

func (*QuoteGetParams) SetColumns

func (o *QuoteGetParams) SetColumns(columns *string)

SetColumns adds the columns to the quote get params

func (*QuoteGetParams) SetContext

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

SetContext adds the context to the quote get params

func (*QuoteGetParams) SetCount

func (o *QuoteGetParams) SetCount(count *int32)

SetCount adds the count to the quote get params

func (*QuoteGetParams) SetEndTime

func (o *QuoteGetParams) SetEndTime(endTime *strfmt.DateTime)

SetEndTime adds the endTime to the quote get params

func (*QuoteGetParams) SetFilter

func (o *QuoteGetParams) SetFilter(filter *string)

SetFilter adds the filter to the quote get params

func (*QuoteGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the quote get params

func (*QuoteGetParams) SetReverse

func (o *QuoteGetParams) SetReverse(reverse *bool)

SetReverse adds the reverse to the quote get params

func (*QuoteGetParams) SetStart

func (o *QuoteGetParams) SetStart(start *int32)

SetStart adds the start to the quote get params

func (*QuoteGetParams) SetStartTime

func (o *QuoteGetParams) SetStartTime(startTime *strfmt.DateTime)

SetStartTime adds the startTime to the quote get params

func (*QuoteGetParams) SetSymbol

func (o *QuoteGetParams) SetSymbol(symbol *string)

SetSymbol adds the symbol to the quote get params

func (*QuoteGetParams) SetTimeout

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

SetTimeout adds the timeout to the quote get params

func (*QuoteGetParams) WithColumns

func (o *QuoteGetParams) WithColumns(columns *string) *QuoteGetParams

WithColumns adds the columns to the quote get params

func (*QuoteGetParams) WithContext

func (o *QuoteGetParams) WithContext(ctx context.Context) *QuoteGetParams

WithContext adds the context to the quote get params

func (*QuoteGetParams) WithCount

func (o *QuoteGetParams) WithCount(count *int32) *QuoteGetParams

WithCount adds the count to the quote get params

func (*QuoteGetParams) WithEndTime

func (o *QuoteGetParams) WithEndTime(endTime *strfmt.DateTime) *QuoteGetParams

WithEndTime adds the endTime to the quote get params

func (*QuoteGetParams) WithFilter

func (o *QuoteGetParams) WithFilter(filter *string) *QuoteGetParams

WithFilter adds the filter to the quote get params

func (*QuoteGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the quote get params

func (*QuoteGetParams) WithReverse

func (o *QuoteGetParams) WithReverse(reverse *bool) *QuoteGetParams

WithReverse adds the reverse to the quote get params

func (*QuoteGetParams) WithStart

func (o *QuoteGetParams) WithStart(start *int32) *QuoteGetParams

WithStart adds the start to the quote get params

func (*QuoteGetParams) WithStartTime

func (o *QuoteGetParams) WithStartTime(startTime *strfmt.DateTime) *QuoteGetParams

WithStartTime adds the startTime to the quote get params

func (*QuoteGetParams) WithSymbol

func (o *QuoteGetParams) WithSymbol(symbol *string) *QuoteGetParams

WithSymbol adds the symbol to the quote get params

func (*QuoteGetParams) WithTimeout

func (o *QuoteGetParams) WithTimeout(timeout time.Duration) *QuoteGetParams

WithTimeout adds the timeout to the quote get params

func (*QuoteGetParams) WriteToRequest

func (o *QuoteGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QuoteGetReader

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

QuoteGetReader is a Reader for the QuoteGet structure.

func (*QuoteGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QuoteGetUnauthorized

type QuoteGetUnauthorized struct {
	Payload *models.Error
}

QuoteGetUnauthorized handles this case with default header values.

Unauthorized

func NewQuoteGetUnauthorized

func NewQuoteGetUnauthorized() *QuoteGetUnauthorized

NewQuoteGetUnauthorized creates a QuoteGetUnauthorized with default headers values

func (*QuoteGetUnauthorized) Error

func (o *QuoteGetUnauthorized) Error() string

Jump to

Keyboard shortcuts

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