order_book

package
Version: v0.0.0-...-65dc651 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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 order book API

func New

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

New creates a new order book API client.

func (*Client) OrderBookGetL2

func (a *Client) OrderBookGetL2(params *OrderBookGetL2Params) (*OrderBookGetL2OK, error)

OrderBookGetL2 gets current orderbook in vertical format

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type OrderBookGetL2BadRequest

type OrderBookGetL2BadRequest struct {
	Payload *models.Error
}

OrderBookGetL2BadRequest handles this case with default header values.

Parameter Error

func NewOrderBookGetL2BadRequest

func NewOrderBookGetL2BadRequest() *OrderBookGetL2BadRequest

NewOrderBookGetL2BadRequest creates a OrderBookGetL2BadRequest with default headers values

func (*OrderBookGetL2BadRequest) Error

func (o *OrderBookGetL2BadRequest) Error() string

type OrderBookGetL2NotFound

type OrderBookGetL2NotFound struct {
	Payload *models.Error
}

OrderBookGetL2NotFound handles this case with default header values.

Not Found

func NewOrderBookGetL2NotFound

func NewOrderBookGetL2NotFound() *OrderBookGetL2NotFound

NewOrderBookGetL2NotFound creates a OrderBookGetL2NotFound with default headers values

func (*OrderBookGetL2NotFound) Error

func (o *OrderBookGetL2NotFound) Error() string

type OrderBookGetL2OK

type OrderBookGetL2OK struct {
	Payload []*models.OrderBookL2
}

OrderBookGetL2OK handles this case with default header values.

Request was successful

func NewOrderBookGetL2OK

func NewOrderBookGetL2OK() *OrderBookGetL2OK

NewOrderBookGetL2OK creates a OrderBookGetL2OK with default headers values

func (*OrderBookGetL2OK) Error

func (o *OrderBookGetL2OK) Error() string

type OrderBookGetL2Params

type OrderBookGetL2Params struct {

	/*Depth
	  Orderbook depth per side. Send 0 for full depth.

	*/
	Depth *int32
	/*Symbol
	  Instrument symbol. Send a series (e.g. XBT) to get data for the nearest contract in that series.

	*/
	Symbol string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrderBookGetL2Params contains all the parameters to send to the API endpoint for the order book get l2 operation typically these are written to a http.Request

func NewOrderBookGetL2Params

func NewOrderBookGetL2Params() *OrderBookGetL2Params

NewOrderBookGetL2Params creates a new OrderBookGetL2Params object with the default values initialized.

func NewOrderBookGetL2ParamsWithContext

func NewOrderBookGetL2ParamsWithContext(ctx context.Context) *OrderBookGetL2Params

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

func NewOrderBookGetL2ParamsWithHTTPClient

func NewOrderBookGetL2ParamsWithHTTPClient(client *http.Client) *OrderBookGetL2Params

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

func NewOrderBookGetL2ParamsWithTimeout

func NewOrderBookGetL2ParamsWithTimeout(timeout time.Duration) *OrderBookGetL2Params

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

func (*OrderBookGetL2Params) SetContext

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

SetContext adds the context to the order book get l2 params

func (*OrderBookGetL2Params) SetDepth

func (o *OrderBookGetL2Params) SetDepth(depth *int32)

SetDepth adds the depth to the order book get l2 params

func (*OrderBookGetL2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order book get l2 params

func (*OrderBookGetL2Params) SetSymbol

func (o *OrderBookGetL2Params) SetSymbol(symbol string)

SetSymbol adds the symbol to the order book get l2 params

func (*OrderBookGetL2Params) SetTimeout

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

SetTimeout adds the timeout to the order book get l2 params

func (*OrderBookGetL2Params) WithContext

WithContext adds the context to the order book get l2 params

func (*OrderBookGetL2Params) WithDepth

func (o *OrderBookGetL2Params) WithDepth(depth *int32) *OrderBookGetL2Params

WithDepth adds the depth to the order book get l2 params

func (*OrderBookGetL2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order book get l2 params

func (*OrderBookGetL2Params) WithSymbol

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

WithSymbol adds the symbol to the order book get l2 params

func (*OrderBookGetL2Params) WithTimeout

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

WithTimeout adds the timeout to the order book get l2 params

func (*OrderBookGetL2Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderBookGetL2Reader

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

OrderBookGetL2Reader is a Reader for the OrderBookGetL2 structure.

func (*OrderBookGetL2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderBookGetL2Unauthorized

type OrderBookGetL2Unauthorized struct {
	Payload *models.Error
}

OrderBookGetL2Unauthorized handles this case with default header values.

Unauthorized

func NewOrderBookGetL2Unauthorized

func NewOrderBookGetL2Unauthorized() *OrderBookGetL2Unauthorized

NewOrderBookGetL2Unauthorized creates a OrderBookGetL2Unauthorized with default headers values

func (*OrderBookGetL2Unauthorized) Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL