> ## Documentation Index
> Fetch the complete documentation index at: https://hypernova.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Orders

> ListOpenOrders and ListOrderHistory - read the resting orders on an account and page through its filled, cancelled and rejected orders.

## ListOpenOrders

`ListOpenOrders` · **read key** · Body: `{ "accountId": "…", "symbol": "BTC" }`, with `symbol` optional

The account's open orders, newest first.

| Field | Type | Description |
| - | - | - |
| `orderId` | string | The id CancelOrder takes. |
| `symbol`, `type`, `side` | string, OrderType, OrderSide | Market, order type and side. |
| `quantity` | decimal | The order's current size. See [Quantity and partial fills](#quantity-and-partial-fills). |
| `price` *optional* | decimal | Limit price. |
| `triggerPrice` *optional* | decimal | The price that fires a stop, take-profit or stop-loss. |
| `reduceOnly` | boolean | Can only shrink a position. |
| `takeProfitPrice`, `stopLossPrice` *optional* | decimal | Exits attached to an entry that has not filled yet. |
| `positionId` *optional* | string | The position the order belongs to. |
| `createdAt` | timestamp | When the order was placed. |
| `status` | OrderStatus | `ORDER_STATUS_OPEN` here. |
| `postOnly`, `closePosition` | boolean | `postOnly` is set only on orders placed in the app. `closePosition` marks an exit that closes the whole position, such as a ClosePosition order or the exit described under [Exits](https://hypernova.xyz/docs/api/place-order.md#exits). PlaceOrder accepts neither. |
| `chasePriceLimit` *optional* | decimal | On a chase LIMIT placed in the app: the buy ceiling or sell floor its price moves toward. |
| `rejectionReason` | OrderRejectionReason | Why a rejected order was refused; `ORDER_REJECTION_REASON_UNSPECIFIED` otherwise. See [Enumerations](https://hypernova.xyz/docs/api/enumerations.md#orderrejectionreason). |

```json theme={null}
{ "orders": [{ "orderId": "019f8c44-7a10-7b2c-9d3e-4f5a6b7c8d9e", "symbol": "BTC", "type": "ORDER_TYPE_LIMIT", "side": "ORDER_SIDE_SELL", "quantity": "0.25", "price": "101000", "reduceOnly": true, "postOnly": false, "closePosition": false, "positionId": "019f8b1c-0d2e-7f31-a4b5-c6d7e8f90a1b", "createdAt": "2026-10-15T06:00:00Z", "status": "ORDER_STATUS_OPEN", "rejectionReason": "ORDER_REJECTION_REASON_UNSPECIFIED" }] }
```

* The list holds at most the account's 1,000 newest open orders, with no paging signal.
* It leaves out the legs of a pair trade and the slices of a TWAP order still scheduled for a later release, so an empty list means no open order the API can show, not no outstanding order.
* Every price on an order carries at most 8 decimal places.

## ListOrderHistory

`ListOrderHistory` · **read key**

The account's finished orders, newest first: filled, cancelled and rejected.

```json theme={null}
{ "accountId": "…", "symbol": "BTC", "status": "ORDER_STATUS_FILLED", "window": { "from": "2026-10-01T00:00:00Z", "to": "2026-10-15T00:00:00Z" }, "limit": 100, "offset": 0 }
```

* Only `accountId` is required. `window` applies to `createdAt`, and `window`, `limit` and `offset` work as in [Paging](https://hypernova.xyz/docs/api/conventions.md#paging).
* `status` is FILLED, CANCELLED or REJECTED; leave it out for all three. OPEN is refused.

Each order has the fields above, plus `averageFillPrice` and `filledAt` once it has filled, and the response has `hasMore`.

> [!WARNING]
>
> An order can be listed as FILLED while its fill is still being booked, and that row can still turn REJECTED or CANCELLED. Treat an execution as final only once [ListTrades](https://hypernova.xyz/docs/api/history.md#listtrades) has a trade with the same `orderId`.

* The list holds every finished order however it was placed, so every `orderId` on a trade is found here, including orders placed in the app, pair legs and scale or TWAP slices.
* A TWAP slice's `createdAt` is its scheduled time, or the time it was cancelled if that came first; one cancelled before its time is listed as cancelled. A scale slice is an ordinary limit order.

> [!WARNING]
>
> An order joins this list when it finishes but sorts by `createdAt`, so one finishing while you page shifts every later offset by one: a row repeats, and the order itself is missed if it sorts above your offset. Pinning `window.to` cannot prevent this. De-duplicate on `orderId`, and read the window again to pick up orders that finished while you paged.

### Quantity and partial fills

An order never rests partly filled: it fills once, though a fill that reverses a position is booked as two trades. Read executed quantities from [ListTrades](https://hypernova.xyz/docs/api/history.md#listtrades).
`quantity` is the order's current size, so it can differ from what was placed:

* refitting a position's reduce-only ladder can shrink an order;
* a reduce-only order is trimmed to the position when it fills;
* an exit that meets less depth is cut to what filled;
* an order listed with `closePosition` closes the position's size at the fill, whatever `quantity` it listed.

When depth cuts a take-profit, stop-loss or stop-market exit short, we try to re-arm the rest, up to the remaining position size, as a new order with its own `orderId`.
The fill stands even if that fails, and the remainder is then left without that exit. After an exit fills for less than the position, confirm the replacement in [ListOpenOrders](#listopenorders) before you treat the remainder as protected.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.