> For the complete documentation index, see [llms.txt](https://docs.anchored.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anchored.finance/trading-api/trading/overview.md).

# Overview

Before placing orders, review the trader integration playbook in [getting-started/trader-questions.md](/trading-api/getting-started/trader-questions.md): tradable symbol, correct balance type, execution mode, and status tracking path.

## Order types

| Type        | Side            | Required fields                    |
| ----------- | --------------- | ---------------------------------- |
| Market buy  | `Buy`           | `notional`                         |
| Market sell | `Sell`          | `quantity`                         |
| Limit       | `Buy` or `Sell` | `quantity`, `price`, `timeInForce` |

All orders require `stockAddress` (from [symbols list](/trading-api/market-data/symbols-and-tradability.md)) and `deadline` (Unix seconds, ≤ `4294967295`).

> **Market orders (buy/sell, incl. deferred market sell) are accepted only during the regular US trading session.** Outside it (pre-market, after-hours, overnight, closed) they are rejected up front — use limit orders. Limit orders are unaffected. See [place-and-cancel-orders.md](/trading-api/trading/place-and-cancel-orders.md).

> Use **strings** for `quantity`, `notional`, and `price` to avoid JS precision loss.

**Deferred sell** (selling a stock before holding it, creating a repayable debt) is placed through these same order endpoints with `deferred: true` + `side: Sell` (whitelist-gated). See [deferred-sell.md](/trading-api/trading/deferred-sell.md).

## Execution modes

| Mode        | Place order             | Cancel limit                        | Record tx         |
| ----------- | ----------------------- | ----------------------------------- | ----------------- |
| Self-submit | `POST /orders/calldata` | `DELETE /orders/{orderId}/calldata` | `POST /orders/tx` |
| One Click   | `POST /orders/send`     | `DELETE /orders/{orderId}/send`     | Auto-recorded     |

One Click requires enabled delegation — see [one-click-delegated.md](/trading-api/trading/one-click-delegated.md) and [guides/one-click-flow.md](/trading-api/guides/one-click-flow.md).

## Typical flow

1. Check [portfolio](/trading-api/portfolio/overview.md) for buying power and holdings.
2. Get quote from [market](/trading-api/market-data/quotes-and-history.md) if needed.
3. Build or send order — [place-and-cancel-orders.md](/trading-api/trading/place-and-cancel-orders.md).
4. Track status — [order-status-and-history.md](/trading-api/trading/order-status-and-history.md).

Self-submit sequence: see [guides/self-submit-on-chain.md](/trading-api/guides/self-submit-on-chain.md).
