order

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 order API

func New

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

New creates a new order API client.

func (*Client) OrderAmend

func (a *Client) OrderAmend(params *OrderAmendParams, authInfo runtime.ClientAuthInfoWriter) (*OrderAmendOK, error)

OrderAmend amends the quantity or price of an open order

Send an `orderID` or `origClOrdID` to identify the order you wish to amend.

Both order quantity and price can be amended. Only one `qty` field can be used to amend.

Use the `leavesQty` field to specify how much of the order you wish to remain open. This can be useful if you want to adjust your position's delta by a certain amount, regardless of how much of the order has already filled.

> A `leavesQty` can be used to make a "Filled" order live again, if it is received within 60 seconds of the fill.

Use the `simpleOrderQty` and `simpleLeavesQty` fields to specify order size in Bitcoin, rather than contracts. These fields will round up to the nearest contract.

Like order placement, amending can be done in bulk. Simply send a request to `PUT /api/v1/order/bulk` with a JSON body of the shape: `{"orders": [{...}, {...}]}`, each object containing the fields used in this endpoint.

func (*Client) OrderAmendBulk

func (a *Client) OrderAmendBulk(params *OrderAmendBulkParams, authInfo runtime.ClientAuthInfoWriter) (*OrderAmendBulkOK, error)

OrderAmendBulk amends multiple orders for the same symbol

Similar to POST /amend, but with multiple orders. `application/json` only. Ratelimited at 10%.

func (*Client) OrderCancel

func (a *Client) OrderCancel(params *OrderCancelParams, authInfo runtime.ClientAuthInfoWriter) (*OrderCancelOK, error)

OrderCancel cancels order s send multiple order ids to cancel in bulk

Either an orderID or a clOrdID must be provided.

func (*Client) OrderCancelAll

func (a *Client) OrderCancelAll(params *OrderCancelAllParams, authInfo runtime.ClientAuthInfoWriter) (*OrderCancelAllOK, error)

OrderCancelAll cancels all of your orders

func (*Client) OrderCancelAllAfter

func (a *Client) OrderCancelAllAfter(params *OrderCancelAllAfterParams, authInfo runtime.ClientAuthInfoWriter) (*OrderCancelAllAfterOK, error)

OrderCancelAllAfter automaticallies cancel all your orders after a specified timeout

Useful as a dead-man's switch to ensure your orders are canceled in case of an outage. If called repeatedly, the existing offset will be canceled and a new one will be inserted in its place.

Example usage: call this route at 15s intervals with an offset of 60000 (60s). If this route is not called within 60 seconds, all your orders will be automatically canceled.

This is also available via [WebSocket](https://www.bitmex.com/app/wsAPI#Dead-Mans-Switch-Auto-Cancel).

func (*Client) OrderClosePosition

func (a *Client) OrderClosePosition(params *OrderClosePositionParams, authInfo runtime.ClientAuthInfoWriter) (*OrderClosePositionOK, error)

OrderClosePosition closes a position deprecated use p o s t order with exec inst close

If no `price` is specified, a market order will be submitted to close the whole of your position. This will also close all other open orders in this symbol.

func (*Client) OrderGetOrders

func (a *Client) OrderGetOrders(params *OrderGetOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*OrderGetOrdersOK, error)

OrderGetOrders gets your orders

To get open orders only, send {"open": true} in the filter param.

See <a href="http://www.onixs.biz/fix-dictionary/5.0.SP2/msgType_D_68.html">the FIX Spec</a> for explanations of these fields.

func (*Client) OrderNew

func (a *Client) OrderNew(params *OrderNewParams, authInfo runtime.ClientAuthInfoWriter) (*OrderNewOK, error)

OrderNew creates a new order

## Placing Orders

This endpoint is used for placing orders. See individual fields below for more details on their use.

#### Order Types

All orders require a `symbol`. All other fields are optional except when otherwise specified.

These are the valid `ordType`s:

  • **Limit**: The default order type. Specify an `orderQty` and `price`.
  • **Market**: A traditional Market order. A Market order will execute until filled or your bankruptcy price is reached, at which point it will cancel.
  • **MarketWithLeftOverAsLimit**: A market order that, after eating through the order book as far as permitted by available margin, will become a limit order. The difference between this type and `Market` only affects the behavior in thin books. Upon reaching the deepest possible price, if there is quantity left over, a `Market` order will cancel the remaining quantity. `MarketWithLeftOverAsLimit` will keep the remaining quantity in the books as a `Limit`.
  • **Stop**: A Stop Market order. Specify an `orderQty` and `stopPx`. When the `stopPx` is reached, the order will be entered into the book.
  • On sell orders, the order will trigger if the triggering price is lower than the `stopPx`. On buys, higher.
  • Note: Stop orders do not consume margin until triggered. Be sure that the required margin is available in your account so that it may trigger fully.
  • `Close` Stops don't require an `orderQty`. See Execution Instructions below.
  • **StopLimit**: Like a Stop Market, but enters a Limit order instead of a Market order. Specify an `orderQty`, `stopPx`, and `price`.
  • **MarketIfTouched**: Similar to a Stop, but triggers are done in the opposite direction. Useful for Take Profit orders.
  • **LimitIfTouched**: As above; use for Take Profit Limit orders.

#### Execution Instructions

The following `execInst`s are supported. If using multiple, separate with a comma (e.g. `LastPrice,Close`).

  • **ParticipateDoNotInitiate**: Also known as a Post-Only order. If this order would have executed on placement, it will cancel instead.
  • **AllOrNone**: Valid only for hidden orders (`displayQty: 0`). Use to only execute if the entire order would fill.
  • **MarkPrice, LastPrice, IndexPrice**: Used by stop and if-touched orders to determine the triggering price. Use only one. By default, `'MarkPrice'` is used. Also used for Pegged orders to define the value of `'LastPeg'`.
  • **ReduceOnly**: A `'ReduceOnly'` order can only reduce your position, not increase it. If you have a `'ReduceOnly'` limit order that rests in the order book while the position is reduced by other orders, then its order quantity will be amended down or canceled. If there are multiple `'ReduceOnly'` orders the least agresssive will be amended first.
  • **Close**: `'Close'` implies `'ReduceOnly'`. A `'Close'` order will cancel other active limit orders with the same side and symbol if the open quantity exceeds the current position. This is useful for stops: by canceling these orders, a `'Close'` Stop is ensured to have the margin required to execute, and can only execute up to the full size of your position. If `orderQty` is not specified, a `'Close'` order has an `orderQty` equal to your current position's size.
  • Note that a `Close` order without an `orderQty` requires a `side`, so that BitMEX knows if it should trigger above or below the `stopPx`.

#### Linked Orders

Linked Orders are an advanced capability. It is very powerful, but its use requires careful coding and testing. Please follow this document carefully and use the [Testnet Exchange](https://testnet.bitmex.com) while developing.

BitMEX offers four advanced Linked Order types:

  • **OCO**: *One Cancels the Other*. A very flexible version of the standard Stop / Take Profit technique. Multiple orders may be linked together using a single `clOrdLinkID`. Send a `contingencyType` of `OneCancelsTheOther` on the orders. The first order that fully or partially executes (or activates for `Stop` orders) will cancel all other orders with the same `clOrdLinkID`.
  • **OTO**: *One Triggers the Other*. Send a `contingencyType` of `'OneTriggersTheOther'` on the primary order and then subsequent orders with the same `clOrdLinkID` will be not be triggered until the primary order fully executes.
  • **OUOA**: *One Updates the Other Absolute*. Send a `contingencyType` of `'OneUpdatesTheOtherAbsolute'` on the orders. Then as one order has a execution, other orders with the same `clOrdLinkID` will have their order quantity amended down by the execution quantity.
  • **OUOP**: *One Updates the Other Proportional*. Send a `contingencyType` of `'OneUpdatesTheOtherProportional'` on the orders. Then as one order has a execution, other orders with the same `clOrdLinkID` will have their order quantity reduced proportionally by the fill percentage.

#### Trailing Stops

You may use `pegPriceType` of `'TrailingStopPeg'` to create Trailing Stops. The pegged `stopPx` will move as the market moves away from the peg, and freeze as the market moves toward it.

To use, combine with `pegOffsetValue` to set the `stopPx` of your order. The peg is set to the triggering price specified in the `execInst` (default `'MarkPrice'`). Use a negative offset for stop-sell and buy-if-touched orders.

Requires `ordType`: `'Stop', 'StopLimit', 'MarketIfTouched', 'LimitIfTouched'`.

#### Simple Quantities

Send a `simpleOrderQty` instead of an `orderQty` to create an order denominated in the underlying currency. This is useful for opening up a position with 1 XBT of exposure without having to calculate how many contracts it is.

#### Rate Limits

See the [Bulk Order Documentation](#!/Order/Order_newBulk) if you need to place multiple orders at the same time. Bulk orders require fewer risk checks in the trading engine and thus are ratelimited at **1/10** the normal rate.

You can also improve your reactivity to market movements while staying under your ratelimit by using the [Amend](#!/Order/Order_amend) and [Amend Bulk](#!/Order/Order_amendBulk) endpoints. This allows you to stay in the market and avoids the cancel/replace cycle.

#### Tracking Your Orders

If you want to keep track of order IDs yourself, set a unique `clOrdID` per order. This `clOrdID` will come back as a property on the order and any related executions (including on the WebSocket), and can be used to get or cancel the order. Max length is 36 characters.

You can also change the `clOrdID` by amending an order, supplying an `origClOrdID`, and your desired new ID as the `clOrdID` param, like so:

``` # Amends an order's leavesQty, and updates its clOrdID to "def-456" PUT /api/v1/order {"origClOrdID": "abc-123", "clOrdID": "def-456", "leavesQty": 1000} ```

func (*Client) OrderNewBulk

func (a *Client) OrderNewBulk(params *OrderNewBulkParams, authInfo runtime.ClientAuthInfoWriter) (*OrderNewBulkOK, error)

OrderNewBulk creates multiple new orders for the same symbol

This endpoint is used for placing bulk orders. Valid order types are Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, MarketWithLeftOverAsLimit, and Pegged.

Each individual order object in the array should have the same properties as an individual POST /order call.

This endpoint is much faster for getting many orders into the book at once. Because it reduces load on BitMEX systems, this endpoint is ratelimited at `ceil(0.1 * orders)`. Submitting 10 orders via a bulk order call will only count as 1 request, 15 as 2, 32 as 4, and so on.

For now, only `application/json` is supported on this endpoint.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type OrderAmendBadRequest

type OrderAmendBadRequest struct {
	Payload *models.Error
}

OrderAmendBadRequest handles this case with default header values.

Parameter Error

func NewOrderAmendBadRequest

func NewOrderAmendBadRequest() *OrderAmendBadRequest

NewOrderAmendBadRequest creates a OrderAmendBadRequest with default headers values

func (*OrderAmendBadRequest) Error

func (o *OrderAmendBadRequest) Error() string

type OrderAmendBulkBadRequest

type OrderAmendBulkBadRequest struct {
	Payload *models.Error
}

OrderAmendBulkBadRequest handles this case with default header values.

Parameter Error

func NewOrderAmendBulkBadRequest

func NewOrderAmendBulkBadRequest() *OrderAmendBulkBadRequest

NewOrderAmendBulkBadRequest creates a OrderAmendBulkBadRequest with default headers values

func (*OrderAmendBulkBadRequest) Error

func (o *OrderAmendBulkBadRequest) Error() string

type OrderAmendBulkNotFound

type OrderAmendBulkNotFound struct {
	Payload *models.Error
}

OrderAmendBulkNotFound handles this case with default header values.

Not Found

func NewOrderAmendBulkNotFound

func NewOrderAmendBulkNotFound() *OrderAmendBulkNotFound

NewOrderAmendBulkNotFound creates a OrderAmendBulkNotFound with default headers values

func (*OrderAmendBulkNotFound) Error

func (o *OrderAmendBulkNotFound) Error() string

type OrderAmendBulkOK

type OrderAmendBulkOK struct {
	Payload []*models.Order
}

OrderAmendBulkOK handles this case with default header values.

Request was successful

func NewOrderAmendBulkOK

func NewOrderAmendBulkOK() *OrderAmendBulkOK

NewOrderAmendBulkOK creates a OrderAmendBulkOK with default headers values

func (*OrderAmendBulkOK) Error

func (o *OrderAmendBulkOK) Error() string

type OrderAmendBulkParams

type OrderAmendBulkParams struct {

	/*Orders
	  An array of orders.

	*/
	Orders *string

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

OrderAmendBulkParams contains all the parameters to send to the API endpoint for the order amend bulk operation typically these are written to a http.Request

func NewOrderAmendBulkParams

func NewOrderAmendBulkParams() *OrderAmendBulkParams

NewOrderAmendBulkParams creates a new OrderAmendBulkParams object with the default values initialized.

func NewOrderAmendBulkParamsWithContext

func NewOrderAmendBulkParamsWithContext(ctx context.Context) *OrderAmendBulkParams

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

func NewOrderAmendBulkParamsWithHTTPClient

func NewOrderAmendBulkParamsWithHTTPClient(client *http.Client) *OrderAmendBulkParams

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

func NewOrderAmendBulkParamsWithTimeout

func NewOrderAmendBulkParamsWithTimeout(timeout time.Duration) *OrderAmendBulkParams

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

func (*OrderAmendBulkParams) SetContext

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

SetContext adds the context to the order amend bulk params

func (*OrderAmendBulkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order amend bulk params

func (*OrderAmendBulkParams) SetOrders

func (o *OrderAmendBulkParams) SetOrders(orders *string)

SetOrders adds the orders to the order amend bulk params

func (*OrderAmendBulkParams) SetTimeout

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

SetTimeout adds the timeout to the order amend bulk params

func (*OrderAmendBulkParams) WithContext

WithContext adds the context to the order amend bulk params

func (*OrderAmendBulkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order amend bulk params

func (*OrderAmendBulkParams) WithOrders

func (o *OrderAmendBulkParams) WithOrders(orders *string) *OrderAmendBulkParams

WithOrders adds the orders to the order amend bulk params

func (*OrderAmendBulkParams) WithTimeout

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

WithTimeout adds the timeout to the order amend bulk params

func (*OrderAmendBulkParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderAmendBulkReader

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

OrderAmendBulkReader is a Reader for the OrderAmendBulk structure.

func (*OrderAmendBulkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderAmendBulkUnauthorized

type OrderAmendBulkUnauthorized struct {
	Payload *models.Error
}

OrderAmendBulkUnauthorized handles this case with default header values.

Unauthorized

func NewOrderAmendBulkUnauthorized

func NewOrderAmendBulkUnauthorized() *OrderAmendBulkUnauthorized

NewOrderAmendBulkUnauthorized creates a OrderAmendBulkUnauthorized with default headers values

func (*OrderAmendBulkUnauthorized) Error

type OrderAmendNotFound

type OrderAmendNotFound struct {
	Payload *models.Error
}

OrderAmendNotFound handles this case with default header values.

Not Found

func NewOrderAmendNotFound

func NewOrderAmendNotFound() *OrderAmendNotFound

NewOrderAmendNotFound creates a OrderAmendNotFound with default headers values

func (*OrderAmendNotFound) Error

func (o *OrderAmendNotFound) Error() string

type OrderAmendOK

type OrderAmendOK struct {
	Payload *models.Order
}

OrderAmendOK handles this case with default header values.

Request was successful

func NewOrderAmendOK

func NewOrderAmendOK() *OrderAmendOK

NewOrderAmendOK creates a OrderAmendOK with default headers values

func (*OrderAmendOK) Error

func (o *OrderAmendOK) Error() string

type OrderAmendParams

type OrderAmendParams struct {

	/*ClOrdID
	  Optional new Client Order ID, requires `origClOrdID`.

	*/
	ClOrdID *string
	/*LeavesQty
	  Optional leaves quantity in units of the instrument (i.e. contracts). Useful for amending partially filled orders.

	*/
	LeavesQty *int32
	/*OrderID
	  Order ID

	*/
	OrderID *string
	/*OrderQty
	  Optional order quantity in units of the instrument (i.e. contracts).

	*/
	OrderQty *int32
	/*OrigClOrdID
	  Client Order ID. See POST /order.

	*/
	OrigClOrdID *string
	/*PegOffsetValue
	  Optional trailing offset from the current price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for 'Pegged' orders.

	*/
	PegOffsetValue *float64
	/*Price
	  Optional limit price for 'Limit', 'StopLimit', and 'LimitIfTouched' orders.

	*/
	Price *float64
	/*SimpleLeavesQty
	  Optional leaves quantity in units of the underlying instrument (i.e. Bitcoin). Useful for amending partially filled orders.

	*/
	SimpleLeavesQty *float64
	/*SimpleOrderQty
	  Optional order quantity in units of the underlying instrument (i.e. Bitcoin).

	*/
	SimpleOrderQty *float64
	/*StopPx
	  Optional trigger price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. Use a price below the current price for stop-sell orders and buy-if-touched orders.

	*/
	StopPx *float64
	/*Text
	  Optional amend annotation. e.g. 'Adjust skew'.

	*/
	Text *string

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

OrderAmendParams contains all the parameters to send to the API endpoint for the order amend operation typically these are written to a http.Request

func NewOrderAmendParams

func NewOrderAmendParams() *OrderAmendParams

NewOrderAmendParams creates a new OrderAmendParams object with the default values initialized.

func NewOrderAmendParamsWithContext

func NewOrderAmendParamsWithContext(ctx context.Context) *OrderAmendParams

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

func NewOrderAmendParamsWithHTTPClient

func NewOrderAmendParamsWithHTTPClient(client *http.Client) *OrderAmendParams

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

func NewOrderAmendParamsWithTimeout

func NewOrderAmendParamsWithTimeout(timeout time.Duration) *OrderAmendParams

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

func (*OrderAmendParams) SetClOrdID

func (o *OrderAmendParams) SetClOrdID(clOrdID *string)

SetClOrdID adds the clOrdId to the order amend params

func (*OrderAmendParams) SetContext

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

SetContext adds the context to the order amend params

func (*OrderAmendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order amend params

func (*OrderAmendParams) SetLeavesQty

func (o *OrderAmendParams) SetLeavesQty(leavesQty *int32)

SetLeavesQty adds the leavesQty to the order amend params

func (*OrderAmendParams) SetOrderID

func (o *OrderAmendParams) SetOrderID(orderID *string)

SetOrderID adds the orderId to the order amend params

func (*OrderAmendParams) SetOrderQty

func (o *OrderAmendParams) SetOrderQty(orderQty *int32)

SetOrderQty adds the orderQty to the order amend params

func (*OrderAmendParams) SetOrigClOrdID

func (o *OrderAmendParams) SetOrigClOrdID(origClOrdID *string)

SetOrigClOrdID adds the origClOrdId to the order amend params

func (*OrderAmendParams) SetPegOffsetValue

func (o *OrderAmendParams) SetPegOffsetValue(pegOffsetValue *float64)

SetPegOffsetValue adds the pegOffsetValue to the order amend params

func (*OrderAmendParams) SetPrice

func (o *OrderAmendParams) SetPrice(price *float64)

SetPrice adds the price to the order amend params

func (*OrderAmendParams) SetSimpleLeavesQty

func (o *OrderAmendParams) SetSimpleLeavesQty(simpleLeavesQty *float64)

SetSimpleLeavesQty adds the simpleLeavesQty to the order amend params

func (*OrderAmendParams) SetSimpleOrderQty

func (o *OrderAmendParams) SetSimpleOrderQty(simpleOrderQty *float64)

SetSimpleOrderQty adds the simpleOrderQty to the order amend params

func (*OrderAmendParams) SetStopPx

func (o *OrderAmendParams) SetStopPx(stopPx *float64)

SetStopPx adds the stopPx to the order amend params

func (*OrderAmendParams) SetText

func (o *OrderAmendParams) SetText(text *string)

SetText adds the text to the order amend params

func (*OrderAmendParams) SetTimeout

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

SetTimeout adds the timeout to the order amend params

func (*OrderAmendParams) WithClOrdID

func (o *OrderAmendParams) WithClOrdID(clOrdID *string) *OrderAmendParams

WithClOrdID adds the clOrdID to the order amend params

func (*OrderAmendParams) WithContext

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

WithContext adds the context to the order amend params

func (*OrderAmendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order amend params

func (*OrderAmendParams) WithLeavesQty

func (o *OrderAmendParams) WithLeavesQty(leavesQty *int32) *OrderAmendParams

WithLeavesQty adds the leavesQty to the order amend params

func (*OrderAmendParams) WithOrderID

func (o *OrderAmendParams) WithOrderID(orderID *string) *OrderAmendParams

WithOrderID adds the orderID to the order amend params

func (*OrderAmendParams) WithOrderQty

func (o *OrderAmendParams) WithOrderQty(orderQty *int32) *OrderAmendParams

WithOrderQty adds the orderQty to the order amend params

func (*OrderAmendParams) WithOrigClOrdID

func (o *OrderAmendParams) WithOrigClOrdID(origClOrdID *string) *OrderAmendParams

WithOrigClOrdID adds the origClOrdID to the order amend params

func (*OrderAmendParams) WithPegOffsetValue

func (o *OrderAmendParams) WithPegOffsetValue(pegOffsetValue *float64) *OrderAmendParams

WithPegOffsetValue adds the pegOffsetValue to the order amend params

func (*OrderAmendParams) WithPrice

func (o *OrderAmendParams) WithPrice(price *float64) *OrderAmendParams

WithPrice adds the price to the order amend params

func (*OrderAmendParams) WithSimpleLeavesQty

func (o *OrderAmendParams) WithSimpleLeavesQty(simpleLeavesQty *float64) *OrderAmendParams

WithSimpleLeavesQty adds the simpleLeavesQty to the order amend params

func (*OrderAmendParams) WithSimpleOrderQty

func (o *OrderAmendParams) WithSimpleOrderQty(simpleOrderQty *float64) *OrderAmendParams

WithSimpleOrderQty adds the simpleOrderQty to the order amend params

func (*OrderAmendParams) WithStopPx

func (o *OrderAmendParams) WithStopPx(stopPx *float64) *OrderAmendParams

WithStopPx adds the stopPx to the order amend params

func (*OrderAmendParams) WithText

func (o *OrderAmendParams) WithText(text *string) *OrderAmendParams

WithText adds the text to the order amend params

func (*OrderAmendParams) WithTimeout

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

WithTimeout adds the timeout to the order amend params

func (*OrderAmendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderAmendReader

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

OrderAmendReader is a Reader for the OrderAmend structure.

func (*OrderAmendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderAmendUnauthorized

type OrderAmendUnauthorized struct {
	Payload *models.Error
}

OrderAmendUnauthorized handles this case with default header values.

Unauthorized

func NewOrderAmendUnauthorized

func NewOrderAmendUnauthorized() *OrderAmendUnauthorized

NewOrderAmendUnauthorized creates a OrderAmendUnauthorized with default headers values

func (*OrderAmendUnauthorized) Error

func (o *OrderAmendUnauthorized) Error() string

type OrderCancelAllAfterBadRequest

type OrderCancelAllAfterBadRequest struct {
	Payload *models.Error
}

OrderCancelAllAfterBadRequest handles this case with default header values.

Parameter Error

func NewOrderCancelAllAfterBadRequest

func NewOrderCancelAllAfterBadRequest() *OrderCancelAllAfterBadRequest

NewOrderCancelAllAfterBadRequest creates a OrderCancelAllAfterBadRequest with default headers values

func (*OrderCancelAllAfterBadRequest) Error

type OrderCancelAllAfterNotFound

type OrderCancelAllAfterNotFound struct {
	Payload *models.Error
}

OrderCancelAllAfterNotFound handles this case with default header values.

Not Found

func NewOrderCancelAllAfterNotFound

func NewOrderCancelAllAfterNotFound() *OrderCancelAllAfterNotFound

NewOrderCancelAllAfterNotFound creates a OrderCancelAllAfterNotFound with default headers values

func (*OrderCancelAllAfterNotFound) Error

type OrderCancelAllAfterOK

type OrderCancelAllAfterOK struct {
	Payload interface{}
}

OrderCancelAllAfterOK handles this case with default header values.

Request was successful

func NewOrderCancelAllAfterOK

func NewOrderCancelAllAfterOK() *OrderCancelAllAfterOK

NewOrderCancelAllAfterOK creates a OrderCancelAllAfterOK with default headers values

func (*OrderCancelAllAfterOK) Error

func (o *OrderCancelAllAfterOK) Error() string

type OrderCancelAllAfterParams

type OrderCancelAllAfterParams struct {

	/*Timeout
	  Timeout in ms. Set to 0 to cancel this timer.

	*/
	Timeout float64

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

OrderCancelAllAfterParams contains all the parameters to send to the API endpoint for the order cancel all after operation typically these are written to a http.Request

func NewOrderCancelAllAfterParams

func NewOrderCancelAllAfterParams() *OrderCancelAllAfterParams

NewOrderCancelAllAfterParams creates a new OrderCancelAllAfterParams object with the default values initialized.

func NewOrderCancelAllAfterParamsWithContext

func NewOrderCancelAllAfterParamsWithContext(ctx context.Context) *OrderCancelAllAfterParams

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

func NewOrderCancelAllAfterParamsWithHTTPClient

func NewOrderCancelAllAfterParamsWithHTTPClient(client *http.Client) *OrderCancelAllAfterParams

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

func NewOrderCancelAllAfterParamsWithTimeout

func NewOrderCancelAllAfterParamsWithTimeout(timeout time.Duration) *OrderCancelAllAfterParams

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

func (*OrderCancelAllAfterParams) SetContext

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

SetContext adds the context to the order cancel all after params

func (*OrderCancelAllAfterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order cancel all after params

func (*OrderCancelAllAfterParams) SetRequestTimeout

func (o *OrderCancelAllAfterParams) SetRequestTimeout(timeout time.Duration)

SetRequestTimeout adds the timeout to the order cancel all after params

func (*OrderCancelAllAfterParams) SetTimeout

func (o *OrderCancelAllAfterParams) SetTimeout(timeout float64)

SetTimeout adds the timeout to the order cancel all after params

func (*OrderCancelAllAfterParams) WithContext

WithContext adds the context to the order cancel all after params

func (*OrderCancelAllAfterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order cancel all after params

func (*OrderCancelAllAfterParams) WithRequestTimeout

func (o *OrderCancelAllAfterParams) WithRequestTimeout(timeout time.Duration) *OrderCancelAllAfterParams

WithRequestTimeout adds the timeout to the order cancel all after params

func (*OrderCancelAllAfterParams) WithTimeout

WithTimeout adds the timeout to the order cancel all after params

func (*OrderCancelAllAfterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrderCancelAllAfterReader

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

OrderCancelAllAfterReader is a Reader for the OrderCancelAllAfter structure.

func (*OrderCancelAllAfterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderCancelAllAfterUnauthorized

type OrderCancelAllAfterUnauthorized struct {
	Payload *models.Error
}

OrderCancelAllAfterUnauthorized handles this case with default header values.

Unauthorized

func NewOrderCancelAllAfterUnauthorized

func NewOrderCancelAllAfterUnauthorized() *OrderCancelAllAfterUnauthorized

NewOrderCancelAllAfterUnauthorized creates a OrderCancelAllAfterUnauthorized with default headers values

func (*OrderCancelAllAfterUnauthorized) Error

type OrderCancelAllBadRequest

type OrderCancelAllBadRequest struct {
	Payload *models.Error
}

OrderCancelAllBadRequest handles this case with default header values.

Parameter Error

func NewOrderCancelAllBadRequest

func NewOrderCancelAllBadRequest() *OrderCancelAllBadRequest

NewOrderCancelAllBadRequest creates a OrderCancelAllBadRequest with default headers values

func (*OrderCancelAllBadRequest) Error

func (o *OrderCancelAllBadRequest) Error() string

type OrderCancelAllNotFound

type OrderCancelAllNotFound struct {
	Payload *models.Error
}

OrderCancelAllNotFound handles this case with default header values.

Not Found

func NewOrderCancelAllNotFound

func NewOrderCancelAllNotFound() *OrderCancelAllNotFound

NewOrderCancelAllNotFound creates a OrderCancelAllNotFound with default headers values

func (*OrderCancelAllNotFound) Error

func (o *OrderCancelAllNotFound) Error() string

type OrderCancelAllOK

type OrderCancelAllOK struct {
	Payload []*models.Order
}

OrderCancelAllOK handles this case with default header values.

Request was successful

func NewOrderCancelAllOK

func NewOrderCancelAllOK() *OrderCancelAllOK

NewOrderCancelAllOK creates a OrderCancelAllOK with default headers values

func (*OrderCancelAllOK) Error

func (o *OrderCancelAllOK) Error() string

type OrderCancelAllParams

type OrderCancelAllParams struct {

	/*Filter
	  Optional filter for cancellation. Use to only cancel some orders, e.g. `{"side": "Buy"}`.

	*/
	Filter *string
	/*Symbol
	  Optional symbol. If provided, only cancels orders for that symbol.

	*/
	Symbol *string
	/*Text
	  Optional cancellation annotation. e.g. 'Spread Exceeded'

	*/
	Text *string

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

OrderCancelAllParams contains all the parameters to send to the API endpoint for the order cancel all operation typically these are written to a http.Request

func NewOrderCancelAllParams

func NewOrderCancelAllParams() *OrderCancelAllParams

NewOrderCancelAllParams creates a new OrderCancelAllParams object with the default values initialized.

func NewOrderCancelAllParamsWithContext

func NewOrderCancelAllParamsWithContext(ctx context.Context) *OrderCancelAllParams

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

func NewOrderCancelAllParamsWithHTTPClient

func NewOrderCancelAllParamsWithHTTPClient(client *http.Client) *OrderCancelAllParams

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

func NewOrderCancelAllParamsWithTimeout

func NewOrderCancelAllParamsWithTimeout(timeout time.Duration) *OrderCancelAllParams

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

func (*OrderCancelAllParams) SetContext

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

SetContext adds the context to the order cancel all params

func (*OrderCancelAllParams) SetFilter

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

SetFilter adds the filter to the order cancel all params

func (*OrderCancelAllParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order cancel all params

func (*OrderCancelAllParams) SetSymbol

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

SetSymbol adds the symbol to the order cancel all params

func (*OrderCancelAllParams) SetText

func (o *OrderCancelAllParams) SetText(text *string)

SetText adds the text to the order cancel all params

func (*OrderCancelAllParams) SetTimeout

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

SetTimeout adds the timeout to the order cancel all params

func (*OrderCancelAllParams) WithContext

WithContext adds the context to the order cancel all params

func (*OrderCancelAllParams) WithFilter

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

WithFilter adds the filter to the order cancel all params

func (*OrderCancelAllParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order cancel all params

func (*OrderCancelAllParams) WithSymbol

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

WithSymbol adds the symbol to the order cancel all params

func (*OrderCancelAllParams) WithText

func (o *OrderCancelAllParams) WithText(text *string) *OrderCancelAllParams

WithText adds the text to the order cancel all params

func (*OrderCancelAllParams) WithTimeout

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

WithTimeout adds the timeout to the order cancel all params

func (*OrderCancelAllParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderCancelAllReader

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

OrderCancelAllReader is a Reader for the OrderCancelAll structure.

func (*OrderCancelAllReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderCancelAllUnauthorized

type OrderCancelAllUnauthorized struct {
	Payload *models.Error
}

OrderCancelAllUnauthorized handles this case with default header values.

Unauthorized

func NewOrderCancelAllUnauthorized

func NewOrderCancelAllUnauthorized() *OrderCancelAllUnauthorized

NewOrderCancelAllUnauthorized creates a OrderCancelAllUnauthorized with default headers values

func (*OrderCancelAllUnauthorized) Error

type OrderCancelBadRequest

type OrderCancelBadRequest struct {
	Payload *models.Error
}

OrderCancelBadRequest handles this case with default header values.

Parameter Error

func NewOrderCancelBadRequest

func NewOrderCancelBadRequest() *OrderCancelBadRequest

NewOrderCancelBadRequest creates a OrderCancelBadRequest with default headers values

func (*OrderCancelBadRequest) Error

func (o *OrderCancelBadRequest) Error() string

type OrderCancelNotFound

type OrderCancelNotFound struct {
	Payload *models.Error
}

OrderCancelNotFound handles this case with default header values.

Not Found

func NewOrderCancelNotFound

func NewOrderCancelNotFound() *OrderCancelNotFound

NewOrderCancelNotFound creates a OrderCancelNotFound with default headers values

func (*OrderCancelNotFound) Error

func (o *OrderCancelNotFound) Error() string

type OrderCancelOK

type OrderCancelOK struct {
	Payload []*models.Order
}

OrderCancelOK handles this case with default header values.

Request was successful

func NewOrderCancelOK

func NewOrderCancelOK() *OrderCancelOK

NewOrderCancelOK creates a OrderCancelOK with default headers values

func (*OrderCancelOK) Error

func (o *OrderCancelOK) Error() string

type OrderCancelParams

type OrderCancelParams struct {

	/*ClOrdID
	  Client Order ID(s). See POST /order.

	*/
	ClOrdID *string
	/*OrderID
	  Order ID(s).

	*/
	OrderID *string
	/*Text
	  Optional cancellation annotation. e.g. 'Spread Exceeded'.

	*/
	Text *string

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

OrderCancelParams contains all the parameters to send to the API endpoint for the order cancel operation typically these are written to a http.Request

func NewOrderCancelParams

func NewOrderCancelParams() *OrderCancelParams

NewOrderCancelParams creates a new OrderCancelParams object with the default values initialized.

func NewOrderCancelParamsWithContext

func NewOrderCancelParamsWithContext(ctx context.Context) *OrderCancelParams

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

func NewOrderCancelParamsWithHTTPClient

func NewOrderCancelParamsWithHTTPClient(client *http.Client) *OrderCancelParams

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

func NewOrderCancelParamsWithTimeout

func NewOrderCancelParamsWithTimeout(timeout time.Duration) *OrderCancelParams

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

func (*OrderCancelParams) SetClOrdID

func (o *OrderCancelParams) SetClOrdID(clOrdID *string)

SetClOrdID adds the clOrdId to the order cancel params

func (*OrderCancelParams) SetContext

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

SetContext adds the context to the order cancel params

func (*OrderCancelParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order cancel params

func (*OrderCancelParams) SetOrderID

func (o *OrderCancelParams) SetOrderID(orderID *string)

SetOrderID adds the orderId to the order cancel params

func (*OrderCancelParams) SetText

func (o *OrderCancelParams) SetText(text *string)

SetText adds the text to the order cancel params

func (*OrderCancelParams) SetTimeout

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

SetTimeout adds the timeout to the order cancel params

func (*OrderCancelParams) WithClOrdID

func (o *OrderCancelParams) WithClOrdID(clOrdID *string) *OrderCancelParams

WithClOrdID adds the clOrdID to the order cancel params

func (*OrderCancelParams) WithContext

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

WithContext adds the context to the order cancel params

func (*OrderCancelParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order cancel params

func (*OrderCancelParams) WithOrderID

func (o *OrderCancelParams) WithOrderID(orderID *string) *OrderCancelParams

WithOrderID adds the orderID to the order cancel params

func (*OrderCancelParams) WithText

func (o *OrderCancelParams) WithText(text *string) *OrderCancelParams

WithText adds the text to the order cancel params

func (*OrderCancelParams) WithTimeout

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

WithTimeout adds the timeout to the order cancel params

func (*OrderCancelParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderCancelReader

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

OrderCancelReader is a Reader for the OrderCancel structure.

func (*OrderCancelReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderCancelUnauthorized

type OrderCancelUnauthorized struct {
	Payload *models.Error
}

OrderCancelUnauthorized handles this case with default header values.

Unauthorized

func NewOrderCancelUnauthorized

func NewOrderCancelUnauthorized() *OrderCancelUnauthorized

NewOrderCancelUnauthorized creates a OrderCancelUnauthorized with default headers values

func (*OrderCancelUnauthorized) Error

func (o *OrderCancelUnauthorized) Error() string

type OrderClosePositionBadRequest

type OrderClosePositionBadRequest struct {
	Payload *models.Error
}

OrderClosePositionBadRequest handles this case with default header values.

Parameter Error

func NewOrderClosePositionBadRequest

func NewOrderClosePositionBadRequest() *OrderClosePositionBadRequest

NewOrderClosePositionBadRequest creates a OrderClosePositionBadRequest with default headers values

func (*OrderClosePositionBadRequest) Error

type OrderClosePositionNotFound

type OrderClosePositionNotFound struct {
	Payload *models.Error
}

OrderClosePositionNotFound handles this case with default header values.

Not Found

func NewOrderClosePositionNotFound

func NewOrderClosePositionNotFound() *OrderClosePositionNotFound

NewOrderClosePositionNotFound creates a OrderClosePositionNotFound with default headers values

func (*OrderClosePositionNotFound) Error

type OrderClosePositionOK

type OrderClosePositionOK struct {
	Payload *models.Order
}

OrderClosePositionOK handles this case with default header values.

Request was successful

func NewOrderClosePositionOK

func NewOrderClosePositionOK() *OrderClosePositionOK

NewOrderClosePositionOK creates a OrderClosePositionOK with default headers values

func (*OrderClosePositionOK) Error

func (o *OrderClosePositionOK) Error() string

type OrderClosePositionParams

type OrderClosePositionParams struct {

	/*Price
	  Optional limit price.

	*/
	Price *float64
	/*Symbol
	  Symbol of position to close.

	*/
	Symbol string

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

OrderClosePositionParams contains all the parameters to send to the API endpoint for the order close position operation typically these are written to a http.Request

func NewOrderClosePositionParams

func NewOrderClosePositionParams() *OrderClosePositionParams

NewOrderClosePositionParams creates a new OrderClosePositionParams object with the default values initialized.

func NewOrderClosePositionParamsWithContext

func NewOrderClosePositionParamsWithContext(ctx context.Context) *OrderClosePositionParams

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

func NewOrderClosePositionParamsWithHTTPClient

func NewOrderClosePositionParamsWithHTTPClient(client *http.Client) *OrderClosePositionParams

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

func NewOrderClosePositionParamsWithTimeout

func NewOrderClosePositionParamsWithTimeout(timeout time.Duration) *OrderClosePositionParams

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

func (*OrderClosePositionParams) SetContext

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

SetContext adds the context to the order close position params

func (*OrderClosePositionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order close position params

func (*OrderClosePositionParams) SetPrice

func (o *OrderClosePositionParams) SetPrice(price *float64)

SetPrice adds the price to the order close position params

func (*OrderClosePositionParams) SetSymbol

func (o *OrderClosePositionParams) SetSymbol(symbol string)

SetSymbol adds the symbol to the order close position params

func (*OrderClosePositionParams) SetTimeout

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

SetTimeout adds the timeout to the order close position params

func (*OrderClosePositionParams) WithContext

WithContext adds the context to the order close position params

func (*OrderClosePositionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order close position params

func (*OrderClosePositionParams) WithPrice

WithPrice adds the price to the order close position params

func (*OrderClosePositionParams) WithSymbol

WithSymbol adds the symbol to the order close position params

func (*OrderClosePositionParams) WithTimeout

WithTimeout adds the timeout to the order close position params

func (*OrderClosePositionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrderClosePositionReader

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

OrderClosePositionReader is a Reader for the OrderClosePosition structure.

func (*OrderClosePositionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderClosePositionUnauthorized

type OrderClosePositionUnauthorized struct {
	Payload *models.Error
}

OrderClosePositionUnauthorized handles this case with default header values.

Unauthorized

func NewOrderClosePositionUnauthorized

func NewOrderClosePositionUnauthorized() *OrderClosePositionUnauthorized

NewOrderClosePositionUnauthorized creates a OrderClosePositionUnauthorized with default headers values

func (*OrderClosePositionUnauthorized) Error

type OrderGetOrdersBadRequest

type OrderGetOrdersBadRequest struct {
	Payload *models.Error
}

OrderGetOrdersBadRequest handles this case with default header values.

Parameter Error

func NewOrderGetOrdersBadRequest

func NewOrderGetOrdersBadRequest() *OrderGetOrdersBadRequest

NewOrderGetOrdersBadRequest creates a OrderGetOrdersBadRequest with default headers values

func (*OrderGetOrdersBadRequest) Error

func (o *OrderGetOrdersBadRequest) Error() string

type OrderGetOrdersNotFound

type OrderGetOrdersNotFound struct {
	Payload *models.Error
}

OrderGetOrdersNotFound handles this case with default header values.

Not Found

func NewOrderGetOrdersNotFound

func NewOrderGetOrdersNotFound() *OrderGetOrdersNotFound

NewOrderGetOrdersNotFound creates a OrderGetOrdersNotFound with default headers values

func (*OrderGetOrdersNotFound) Error

func (o *OrderGetOrdersNotFound) Error() string

type OrderGetOrdersOK

type OrderGetOrdersOK struct {
	Payload []*models.Order
}

OrderGetOrdersOK handles this case with default header values.

Request was successful

func NewOrderGetOrdersOK

func NewOrderGetOrdersOK() *OrderGetOrdersOK

NewOrderGetOrdersOK creates a OrderGetOrdersOK with default headers values

func (*OrderGetOrdersOK) Error

func (o *OrderGetOrdersOK) Error() string

type OrderGetOrdersParams

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

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

func NewOrderGetOrdersParams

func NewOrderGetOrdersParams() *OrderGetOrdersParams

NewOrderGetOrdersParams creates a new OrderGetOrdersParams object with the default values initialized.

func NewOrderGetOrdersParamsWithContext

func NewOrderGetOrdersParamsWithContext(ctx context.Context) *OrderGetOrdersParams

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

func NewOrderGetOrdersParamsWithHTTPClient

func NewOrderGetOrdersParamsWithHTTPClient(client *http.Client) *OrderGetOrdersParams

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

func NewOrderGetOrdersParamsWithTimeout

func NewOrderGetOrdersParamsWithTimeout(timeout time.Duration) *OrderGetOrdersParams

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

func (*OrderGetOrdersParams) SetColumns

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

SetColumns adds the columns to the order get orders params

func (*OrderGetOrdersParams) SetContext

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

SetContext adds the context to the order get orders params

func (*OrderGetOrdersParams) SetCount

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

SetCount adds the count to the order get orders params

func (*OrderGetOrdersParams) SetEndTime

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

SetEndTime adds the endTime to the order get orders params

func (*OrderGetOrdersParams) SetFilter

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

SetFilter adds the filter to the order get orders params

func (*OrderGetOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order get orders params

func (*OrderGetOrdersParams) SetReverse

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

SetReverse adds the reverse to the order get orders params

func (*OrderGetOrdersParams) SetStart

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

SetStart adds the start to the order get orders params

func (*OrderGetOrdersParams) SetStartTime

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

SetStartTime adds the startTime to the order get orders params

func (*OrderGetOrdersParams) SetSymbol

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

SetSymbol adds the symbol to the order get orders params

func (*OrderGetOrdersParams) SetTimeout

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

SetTimeout adds the timeout to the order get orders params

func (*OrderGetOrdersParams) WithColumns

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

WithColumns adds the columns to the order get orders params

func (*OrderGetOrdersParams) WithContext

WithContext adds the context to the order get orders params

func (*OrderGetOrdersParams) WithCount

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

WithCount adds the count to the order get orders params

func (*OrderGetOrdersParams) WithEndTime

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

WithEndTime adds the endTime to the order get orders params

func (*OrderGetOrdersParams) WithFilter

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

WithFilter adds the filter to the order get orders params

func (*OrderGetOrdersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order get orders params

func (*OrderGetOrdersParams) WithReverse

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

WithReverse adds the reverse to the order get orders params

func (*OrderGetOrdersParams) WithStart

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

WithStart adds the start to the order get orders params

func (*OrderGetOrdersParams) WithStartTime

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

WithStartTime adds the startTime to the order get orders params

func (*OrderGetOrdersParams) WithSymbol

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

WithSymbol adds the symbol to the order get orders params

func (*OrderGetOrdersParams) WithTimeout

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

WithTimeout adds the timeout to the order get orders params

func (*OrderGetOrdersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderGetOrdersReader

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

OrderGetOrdersReader is a Reader for the OrderGetOrders structure.

func (*OrderGetOrdersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderGetOrdersUnauthorized

type OrderGetOrdersUnauthorized struct {
	Payload *models.Error
}

OrderGetOrdersUnauthorized handles this case with default header values.

Unauthorized

func NewOrderGetOrdersUnauthorized

func NewOrderGetOrdersUnauthorized() *OrderGetOrdersUnauthorized

NewOrderGetOrdersUnauthorized creates a OrderGetOrdersUnauthorized with default headers values

func (*OrderGetOrdersUnauthorized) Error

type OrderNewBadRequest

type OrderNewBadRequest struct {
	Payload *models.Error
}

OrderNewBadRequest handles this case with default header values.

Parameter Error

func NewOrderNewBadRequest

func NewOrderNewBadRequest() *OrderNewBadRequest

NewOrderNewBadRequest creates a OrderNewBadRequest with default headers values

func (*OrderNewBadRequest) Error

func (o *OrderNewBadRequest) Error() string

type OrderNewBulkBadRequest

type OrderNewBulkBadRequest struct {
	Payload *models.Error
}

OrderNewBulkBadRequest handles this case with default header values.

Parameter Error

func NewOrderNewBulkBadRequest

func NewOrderNewBulkBadRequest() *OrderNewBulkBadRequest

NewOrderNewBulkBadRequest creates a OrderNewBulkBadRequest with default headers values

func (*OrderNewBulkBadRequest) Error

func (o *OrderNewBulkBadRequest) Error() string

type OrderNewBulkNotFound

type OrderNewBulkNotFound struct {
	Payload *models.Error
}

OrderNewBulkNotFound handles this case with default header values.

Not Found

func NewOrderNewBulkNotFound

func NewOrderNewBulkNotFound() *OrderNewBulkNotFound

NewOrderNewBulkNotFound creates a OrderNewBulkNotFound with default headers values

func (*OrderNewBulkNotFound) Error

func (o *OrderNewBulkNotFound) Error() string

type OrderNewBulkOK

type OrderNewBulkOK struct {
	Payload []*models.Order
}

OrderNewBulkOK handles this case with default header values.

Request was successful

func NewOrderNewBulkOK

func NewOrderNewBulkOK() *OrderNewBulkOK

NewOrderNewBulkOK creates a OrderNewBulkOK with default headers values

func (*OrderNewBulkOK) Error

func (o *OrderNewBulkOK) Error() string

type OrderNewBulkParams

type OrderNewBulkParams struct {

	/*Orders
	  An array of orders.

	*/
	Orders *string

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

OrderNewBulkParams contains all the parameters to send to the API endpoint for the order new bulk operation typically these are written to a http.Request

func NewOrderNewBulkParams

func NewOrderNewBulkParams() *OrderNewBulkParams

NewOrderNewBulkParams creates a new OrderNewBulkParams object with the default values initialized.

func NewOrderNewBulkParamsWithContext

func NewOrderNewBulkParamsWithContext(ctx context.Context) *OrderNewBulkParams

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

func NewOrderNewBulkParamsWithHTTPClient

func NewOrderNewBulkParamsWithHTTPClient(client *http.Client) *OrderNewBulkParams

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

func NewOrderNewBulkParamsWithTimeout

func NewOrderNewBulkParamsWithTimeout(timeout time.Duration) *OrderNewBulkParams

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

func (*OrderNewBulkParams) SetContext

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

SetContext adds the context to the order new bulk params

func (*OrderNewBulkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order new bulk params

func (*OrderNewBulkParams) SetOrders

func (o *OrderNewBulkParams) SetOrders(orders *string)

SetOrders adds the orders to the order new bulk params

func (*OrderNewBulkParams) SetTimeout

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

SetTimeout adds the timeout to the order new bulk params

func (*OrderNewBulkParams) WithContext

WithContext adds the context to the order new bulk params

func (*OrderNewBulkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order new bulk params

func (*OrderNewBulkParams) WithOrders

func (o *OrderNewBulkParams) WithOrders(orders *string) *OrderNewBulkParams

WithOrders adds the orders to the order new bulk params

func (*OrderNewBulkParams) WithTimeout

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

WithTimeout adds the timeout to the order new bulk params

func (*OrderNewBulkParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderNewBulkReader

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

OrderNewBulkReader is a Reader for the OrderNewBulk structure.

func (*OrderNewBulkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderNewBulkUnauthorized

type OrderNewBulkUnauthorized struct {
	Payload *models.Error
}

OrderNewBulkUnauthorized handles this case with default header values.

Unauthorized

func NewOrderNewBulkUnauthorized

func NewOrderNewBulkUnauthorized() *OrderNewBulkUnauthorized

NewOrderNewBulkUnauthorized creates a OrderNewBulkUnauthorized with default headers values

func (*OrderNewBulkUnauthorized) Error

func (o *OrderNewBulkUnauthorized) Error() string

type OrderNewNotFound

type OrderNewNotFound struct {
	Payload *models.Error
}

OrderNewNotFound handles this case with default header values.

Not Found

func NewOrderNewNotFound

func NewOrderNewNotFound() *OrderNewNotFound

NewOrderNewNotFound creates a OrderNewNotFound with default headers values

func (*OrderNewNotFound) Error

func (o *OrderNewNotFound) Error() string

type OrderNewOK

type OrderNewOK struct {
	Payload *models.Order
}

OrderNewOK handles this case with default header values.

Request was successful

func NewOrderNewOK

func NewOrderNewOK() *OrderNewOK

NewOrderNewOK creates a OrderNewOK with default headers values

func (*OrderNewOK) Error

func (o *OrderNewOK) Error() string

type OrderNewParams

type OrderNewParams struct {

	/*ClOrdID
	  Optional Client Order ID. This clOrdID will come back on the order and any related executions.

	*/
	ClOrdID *string
	/*ClOrdLinkID
	  Optional Client Order Link ID for contingent orders.

	*/
	ClOrdLinkID *string
	/*ContingencyType
	  Optional contingency type for use with `clOrdLinkID`. Valid options: OneCancelsTheOther, OneTriggersTheOther, OneUpdatesTheOtherAbsolute, OneUpdatesTheOtherProportional.

	*/
	ContingencyType *string
	/*DisplayQty
	  Optional quantity to display in the book. Use 0 for a fully hidden order.

	*/
	DisplayQty *int32
	/*ExecInst
	  Optional execution instructions. Valid options: ParticipateDoNotInitiate, AllOrNone, MarkPrice, IndexPrice, LastPrice, Close, ReduceOnly, Fixed. 'AllOrNone' instruction requires `displayQty` to be 0. 'MarkPrice', 'IndexPrice' or 'LastPrice' instruction valid for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders.

	*/
	ExecInst *string
	/*OrdType
	  Order type. Valid options: Market, Limit, Stop, StopLimit, MarketIfTouched, LimitIfTouched, MarketWithLeftOverAsLimit, Pegged. Defaults to 'Limit' when `price` is specified. Defaults to 'Stop' when `stopPx` is specified. Defaults to 'StopLimit' when `price` and `stopPx` are specified.

	*/
	OrdType *string
	/*OrderQty
	  Order quantity in units of the instrument (i.e. contracts).

	*/
	OrderQty *int32
	/*PegOffsetValue
	  Optional trailing offset from the current price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders; use a negative offset for stop-sell orders and buy-if-touched orders. Optional offset from the peg price for 'Pegged' orders.

	*/
	PegOffsetValue *float64
	/*PegPriceType
	  Optional peg price type. Valid options: LastPeg, MidPricePeg, MarketPeg, PrimaryPeg, TrailingStopPeg.

	*/
	PegPriceType *string
	/*Price
	  Optional limit price for 'Limit', 'StopLimit', and 'LimitIfTouched' orders.

	*/
	Price *float64
	/*Side
	  Order side. Valid options: Buy, Sell. Defaults to 'Buy' unless `orderQty` or `simpleOrderQty` is negative.

	*/
	Side *string
	/*SimpleOrderQty
	  Order quantity in units of the underlying instrument (i.e. Bitcoin).

	*/
	SimpleOrderQty *float64
	/*StopPx
	  Optional trigger price for 'Stop', 'StopLimit', 'MarketIfTouched', and 'LimitIfTouched' orders. Use a price below the current price for stop-sell orders and buy-if-touched orders. Use `execInst` of 'MarkPrice' or 'LastPrice' to define the current price used for triggering.

	*/
	StopPx *float64
	/*Symbol
	  Instrument symbol. e.g. 'XBTUSD'.

	*/
	Symbol string
	/*Text
	  Optional order annotation. e.g. 'Take profit'.

	*/
	Text *string
	/*TimeInForce
	  Time in force. Valid options: Day, GoodTillCancel, ImmediateOrCancel, FillOrKill. Defaults to 'GoodTillCancel' for 'Limit', 'StopLimit', 'LimitIfTouched', and 'MarketWithLeftOverAsLimit' orders.

	*/
	TimeInForce *string

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

OrderNewParams contains all the parameters to send to the API endpoint for the order new operation typically these are written to a http.Request

func NewOrderNewParams

func NewOrderNewParams() *OrderNewParams

NewOrderNewParams creates a new OrderNewParams object with the default values initialized.

func NewOrderNewParamsWithContext

func NewOrderNewParamsWithContext(ctx context.Context) *OrderNewParams

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

func NewOrderNewParamsWithHTTPClient

func NewOrderNewParamsWithHTTPClient(client *http.Client) *OrderNewParams

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

func NewOrderNewParamsWithTimeout

func NewOrderNewParamsWithTimeout(timeout time.Duration) *OrderNewParams

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

func (*OrderNewParams) SetClOrdID

func (o *OrderNewParams) SetClOrdID(clOrdID *string)

SetClOrdID adds the clOrdId to the order new params

func (*OrderNewParams) SetClOrdLinkID

func (o *OrderNewParams) SetClOrdLinkID(clOrdLinkID *string)

SetClOrdLinkID adds the clOrdLinkId to the order new params

func (*OrderNewParams) SetContext

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

SetContext adds the context to the order new params

func (*OrderNewParams) SetContingencyType

func (o *OrderNewParams) SetContingencyType(contingencyType *string)

SetContingencyType adds the contingencyType to the order new params

func (*OrderNewParams) SetDisplayQty

func (o *OrderNewParams) SetDisplayQty(displayQty *int32)

SetDisplayQty adds the displayQty to the order new params

func (*OrderNewParams) SetExecInst

func (o *OrderNewParams) SetExecInst(execInst *string)

SetExecInst adds the execInst to the order new params

func (*OrderNewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the order new params

func (*OrderNewParams) SetOrdType

func (o *OrderNewParams) SetOrdType(ordType *string)

SetOrdType adds the ordType to the order new params

func (*OrderNewParams) SetOrderQty

func (o *OrderNewParams) SetOrderQty(orderQty *int32)

SetOrderQty adds the orderQty to the order new params

func (*OrderNewParams) SetPegOffsetValue

func (o *OrderNewParams) SetPegOffsetValue(pegOffsetValue *float64)

SetPegOffsetValue adds the pegOffsetValue to the order new params

func (*OrderNewParams) SetPegPriceType

func (o *OrderNewParams) SetPegPriceType(pegPriceType *string)

SetPegPriceType adds the pegPriceType to the order new params

func (*OrderNewParams) SetPrice

func (o *OrderNewParams) SetPrice(price *float64)

SetPrice adds the price to the order new params

func (*OrderNewParams) SetSide

func (o *OrderNewParams) SetSide(side *string)

SetSide adds the side to the order new params

func (*OrderNewParams) SetSimpleOrderQty

func (o *OrderNewParams) SetSimpleOrderQty(simpleOrderQty *float64)

SetSimpleOrderQty adds the simpleOrderQty to the order new params

func (*OrderNewParams) SetStopPx

func (o *OrderNewParams) SetStopPx(stopPx *float64)

SetStopPx adds the stopPx to the order new params

func (*OrderNewParams) SetSymbol

func (o *OrderNewParams) SetSymbol(symbol string)

SetSymbol adds the symbol to the order new params

func (*OrderNewParams) SetText

func (o *OrderNewParams) SetText(text *string)

SetText adds the text to the order new params

func (*OrderNewParams) SetTimeInForce

func (o *OrderNewParams) SetTimeInForce(timeInForce *string)

SetTimeInForce adds the timeInForce to the order new params

func (*OrderNewParams) SetTimeout

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

SetTimeout adds the timeout to the order new params

func (*OrderNewParams) WithClOrdID

func (o *OrderNewParams) WithClOrdID(clOrdID *string) *OrderNewParams

WithClOrdID adds the clOrdID to the order new params

func (*OrderNewParams) WithClOrdLinkID

func (o *OrderNewParams) WithClOrdLinkID(clOrdLinkID *string) *OrderNewParams

WithClOrdLinkID adds the clOrdLinkID to the order new params

func (*OrderNewParams) WithContext

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

WithContext adds the context to the order new params

func (*OrderNewParams) WithContingencyType

func (o *OrderNewParams) WithContingencyType(contingencyType *string) *OrderNewParams

WithContingencyType adds the contingencyType to the order new params

func (*OrderNewParams) WithDisplayQty

func (o *OrderNewParams) WithDisplayQty(displayQty *int32) *OrderNewParams

WithDisplayQty adds the displayQty to the order new params

func (*OrderNewParams) WithExecInst

func (o *OrderNewParams) WithExecInst(execInst *string) *OrderNewParams

WithExecInst adds the execInst to the order new params

func (*OrderNewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the order new params

func (*OrderNewParams) WithOrdType

func (o *OrderNewParams) WithOrdType(ordType *string) *OrderNewParams

WithOrdType adds the ordType to the order new params

func (*OrderNewParams) WithOrderQty

func (o *OrderNewParams) WithOrderQty(orderQty *int32) *OrderNewParams

WithOrderQty adds the orderQty to the order new params

func (*OrderNewParams) WithPegOffsetValue

func (o *OrderNewParams) WithPegOffsetValue(pegOffsetValue *float64) *OrderNewParams

WithPegOffsetValue adds the pegOffsetValue to the order new params

func (*OrderNewParams) WithPegPriceType

func (o *OrderNewParams) WithPegPriceType(pegPriceType *string) *OrderNewParams

WithPegPriceType adds the pegPriceType to the order new params

func (*OrderNewParams) WithPrice

func (o *OrderNewParams) WithPrice(price *float64) *OrderNewParams

WithPrice adds the price to the order new params

func (*OrderNewParams) WithSide

func (o *OrderNewParams) WithSide(side *string) *OrderNewParams

WithSide adds the side to the order new params

func (*OrderNewParams) WithSimpleOrderQty

func (o *OrderNewParams) WithSimpleOrderQty(simpleOrderQty *float64) *OrderNewParams

WithSimpleOrderQty adds the simpleOrderQty to the order new params

func (*OrderNewParams) WithStopPx

func (o *OrderNewParams) WithStopPx(stopPx *float64) *OrderNewParams

WithStopPx adds the stopPx to the order new params

func (*OrderNewParams) WithSymbol

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

WithSymbol adds the symbol to the order new params

func (*OrderNewParams) WithText

func (o *OrderNewParams) WithText(text *string) *OrderNewParams

WithText adds the text to the order new params

func (*OrderNewParams) WithTimeInForce

func (o *OrderNewParams) WithTimeInForce(timeInForce *string) *OrderNewParams

WithTimeInForce adds the timeInForce to the order new params

func (*OrderNewParams) WithTimeout

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

WithTimeout adds the timeout to the order new params

func (*OrderNewParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OrderNewReader

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

OrderNewReader is a Reader for the OrderNew structure.

func (*OrderNewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrderNewUnauthorized

type OrderNewUnauthorized struct {
	Payload *models.Error
}

OrderNewUnauthorized handles this case with default header values.

Unauthorized

func NewOrderNewUnauthorized

func NewOrderNewUnauthorized() *OrderNewUnauthorized

NewOrderNewUnauthorized creates a OrderNewUnauthorized with default headers values

func (*OrderNewUnauthorized) Error

func (o *OrderNewUnauthorized) Error() string

Jump to

Keyboard shortcuts

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