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

# Orders

# Orders

Every open order, with inline repricing and bulk actions (`/orders`). The same rows
appear in the bottom dock's Orders tab, the portfolio's expanded rows and the market
view's My orders tab.

## Content

* Tabs: **Open** (default), **Rejected** (this session's rejected and failed intents,
  with reasons), **History** (filled and cancelled, paged by date).
* Grouped by market by default (toggle off for a flat list sorted by age).
* Per order: market / outcome, side, price with stepper, size, filled, status, age, the
  current best price on its side, and its distance from the touch in ticks.

## Desktop (content 1376 px)

```
 ┌──────────────────────────────────────────────────────────────────────────────────────────────────────┐
 │ Open 7   Rejected 2   History          [All | Buy | Sell | Delayed]           [*] Group by market    │ 36 header: tabs, filters
 ├──────────────────────────────────────────────────────────────────────────────────────────────────────┤
 │ 7 open · $412.50 resting                                                                             │ 36 summary (no selection)
 │ 3 selected   [−1 tick] [+1 tick] [Join best] [Cancel 3]                                    Clear     │    bulk bar, same row
 ├──────────────────────────────────────────────────────────────────────────────────────────────────────┤
 │ [ ]  Market / outcome             Side  Price            Size  Filled  Status          Age Best Dist │ 32 column headers
 ├──────────────────────────────────────────────────────────────────────────────────────────────────────┤
 │ [chevron-down] Lakers v Celtics · Moneyline                             [Cancel (3)]                 │ 32 group
 │ [ ]  Lakers                       Buy   [−] 40¢ [+]        25          Open             2m  41¢   −1 │ 36
 │ [*]  Lakers                       Sell  [−] 47¢ [+]        60          Open             5m  43¢   +4 │
 │ [ ]  Celtics                      Buy   [−] 55¢ [+]        30          Delayed 2s       3s  58¢   −3 │
 │ [chevron-down] Fed decision December · Cut 25bp                         [Cancel (1)]                 │
 │ [ ]  Yes                          Buy   [−] 58¢ [+]       100      40  Partial 40/100   1h  62¢   −4 │
 └──────────────────────────────────────────────────────────────────────────────────────────────────────┘
   the row's cancel [x] (40 px column at the right) appears on hover or focus
```

### Columns

| Column | Width | Notes |
| - | - | - |
| Select | 40 | Checkbox (`--input` border). Header checkbox selects all visible |
| Market / outcome | flex (≥ 240) | Outcome (body), market (body-sm muted) when ungrouped. Click: open the market view |
| Side | 56 | `Buy` in `--bid`, `Sell` in `--ask`, label text. Always a word, never colour alone |
| Price | 120 | Tick stepper (components.md): `[−] 40¢ [+]` |
| Size | 80 | Exact shares |
| Filled | 80 | Shares filled, in the same format as Size (`40`); blank while none has; `40/100 sh` in the tooltip |
| Status | 128 | Order chip in table form (components.md) |
| Age | 56 | `3s`, `2m`, `1h`, `2d`. Updates each second under a minute, then each minute |
| Best | 56 | Best bid for buys, best ask for sells; price cell with flash |
| Dist | 56 | Ticks from the touch: `0` = at the touch, negative = behind it. `--muted-foreground` |
| Cancel | 40 | `[x]` icon button (destructive-ghost), shown on row hover or keyboard focus (always on touch); the column width is reserved. Disabled while delayed, tooltip `In delay window (2s)` |

### Interactions

| Input | Action |
| - | - |
| Stepper `−` / `+` | Move the order one tick (1 click per tick). Sends a reprice at once. If a reprice for this order is already in flight, the new target is held and sent when the first returns; the price shows `→ 38¢` meanwhile. Only the latest target is sent |
| Click a row (not a control) | Toggle its selection |
| Shift+click a row | Select the range |
| `[x]` or right-click the row | Cancel that order |
| `Cancel (N)` | Cancel all your orders in that market (1 click) |
| Bulk `− 1 tick` / `+ 1 tick` | Reprice every selected order by one tick |
| Bulk `Join best` | Reprice selected buys to the best bid and sells to the best ask |
| Bulk `Cancel N` | Cancel the selected orders |
| Keys | `↑` `↓` `Space` `Mod+A` `[` `]` `Delete` (interactions.md) |

* The bulk bar replaces the summary line in the same 36 px row, so the table never
  moves when a selection starts.
* Bulk actions skip delayed orders and say so in the result toast
  (`Moved 2 · 1 in delay window`).
* Rows that become filled or cancelled leave the Open tab through the deferred-change
  rules: a ghost row while the list is in use, then gone.
* A selected order that disappears is removed from the selection.

### Rejected tab

Columns: time, market / outcome, side, price, size, reason (full text from the error),
source (`risk`, `venue`, `network`). Read-only; the list clears on reload.

## Mobile

```
 ┌──────────────────────────────────────┐
 │ app header                           │ 52
 ├──────────────────────────────────────┤
 │ [Open 7|Rejected|History]    Select  │ 44
 │ [All] [Buy] [Sell] [Delayed]         │ 44 filter chips
 ├──────────────────────────────────────┤
 │ Lakers v Celtics · ML  [Cancel (3)]  │ 36 group header (sticky)
 │ ┌──────────────────────────────────┐ │
 │ │ Lakers                     Open  │ │ 24
 │ │ Buy [ − ][  40¢  ][ + ]  25  [x] │ │ 44 steppers 44×44, cancel 44×44
 │ │ best 41¢ · −1 tick · 2m          │ │ 20
 │ └──────────────────────────────────┘ │
 │ ┌──────────────────────────────────┐ │
 │ │ Celtics               Delayed 2s │ │
 │ │ Buy [ − ][  55¢  ][ + ]  30  [x] │ │ (steppers and cancel disabled)
 │ │ best 58¢ · −3 ticks · 3s         │ │
 │ └──────────────────────────────────┘ │
 ├──────────────────────────────────────┤
 │ 2 selected [−1][+1][Join][Cancel 2]  │ 44 bulk bar (select mode only; above the tab bar)
 ├──────────────────────────────────────┤
 │ tab bar                              │ 56
 └──────────────────────────────────────┘
```

* Steppers are 44 × 44: one tap per tick meets the budget on mobile.
* Long-press a card: cancel that order (the right-click rule). `[x]` does the same.
* The stepper buttons, the price field and the cancel button form one 44 px row with a
  4 px gap between each (one gap per group). The price is centred on its own text.
* `Select` enters select mode: a checkbox appears on each card (44 × 44 hit), taps toggle
  selection, and the bulk bar appears above the tab bar. `Done` leaves select mode.
* Group header `Cancel (3)` cancels the market's orders (1 tap).


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