---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk-predictions/interfaces/OrderInputBase.md
---
[Reference](../../../index.md) / [@getenginex/sdk-predictions](../index.md) / OrderInputBase

# OrderInputBase

Fields common to every new order (limit or market).

## Extended by

* [`LimitOrderInput`](LimitOrderInput.md)
* [`MarketOrderInput`](MarketOrderInput.md)

## Properties

### direction

> **direction**: `"buy"` | `"sell"`

`buy` or `sell`.

***

### marketId

> **marketId**: `string`

Market id.

***

### postOnly?

> `optional` **postOnly?**: `boolean`

Rejects the order if it would cross the spread (only adds liquidity). Boolean.

***

### quantity

> **quantity**: `number`

Quantity in contracts, an integer greater than zero.

***

### reduceOnly?

> `optional` **reduceOnly?**: `boolean`

The order can only reduce an existing position. Boolean.

***

### side

> **side**: [`OutcomeSide`](../type-aliases/OutcomeSide.md)

Market side: `yes` or `no`.

***

### timeInForce?

> `optional` **timeInForce?**: `"gtc"` | `"ioc"` | `"fok"`

`gtc` (default), `ioc` or `fok`.
