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

# Market Depth

The **Market Depth widget**, listed as **DOM Trading** in the [Widget Hub](https://takeprofit.com/docs/guide/getting-started/Widget-Hub.md), is a live order book for crypto instruments that you can read, shape and trade from. It shows where buy and sell liquidity is resting, and the columns you add show what is happening to it: what traded at each price, which side was more aggressive, and where orders are being pulled or stacked.

![The Market Depth widget with the Delta, Orders, Pull / Stack and Total columns on, and the View and Settings panel open](https://mintcdn.com/takeprofit-a5dc0462/0vPmF4rYW-ps0i2x/images/guide/platform/orderbook/DOM_Columns.gif?s=f380e01a574a27bf8307ca097a93019c)

You can:

* **Trade the ladder itself** — place at a price row, drag an order to a new level, cancel it where it rests.
* **Build the book you want** — turn columns on and off, drag them into a new order, and resize them.
* **Start from a template** — pick a ready-made layout, then save your own.
* Read resting liquidity, the spread and the balance between buyers and sellers at a glance.

> [!NOTE]
>
> Market Depth is available for crypto instruments from **70+ supported exchanges**. To read depth without the widget, the [Order Book Profile](https://takeprofit.com/docs/guide/platform/chart-widget/chart-types/Order-book-profile.md) draws the live book beside price on the chart, and [Trade Tape](https://takeprofit.com/docs/guide/platform/orderbook-widget/trade-tape.md) lists every trade as it prints.

***

## Reading the Book

The **price** column runs down the middle, with **bids** (buy orders, green) on one side and **asks** (sell orders, red) on the other. Each row shows the size resting at that price, with a bar for its size against the rest of the book, and a stepped curve shows how liquidity builds up away from the spread.

The line above the ladder sums up the market:

* **Last price** — the latest trade price, with an arrow for its direction.
* **Spread** — the gap between the best bid and the best ask, in price steps and as a percentage.
* **Bid/Ask ratio** — the share of resting size on each side, such as **B 45% 4.69K** against **5.70K 55% S**, with a bar for the balance.

Hover any row to see how far it is from the current price.

## The Toolbar

The row under the widget header holds the controls you use most:

* **Book Templates** — the layout menu; see [Templates](#templates).
* **Bids and Asks**, **Bids Only**, **Asks Only** — show the whole book or one side of it. A single side gives that side the full height of the widget.
* **Bring spread back to center** — returns the ladder to the live price after you scroll away.
* **Price step** — **−** and **+** change how many price levels each row groups, such as **0.01**, **0.1**, **2.5** or **10** on the same instrument. A smaller step shows every level; a larger one gives a cleaner overview of where the liquidity sits.

**Trade** on the right shows or hides the [trading panel](#trading-in-the-ladder).

## Columns

Beyond price, bid and ask, the book can show more columns. Turn each one on with its eye in [View and Settings](#view-and-settings), drag a column header to move it, and drag its edge to resize it.

| Column | Header | What it shows |
| - | - | - |
| **Orders Column** | ORDERS | Your working orders, as badges beside the prices they sit at. |
| **Delta** | Δ | Bought minus sold volume at each price, over the **Delta Period**: **Since Reset** (the reset button starts the count again) or the last **1m**, **5m** or **15m**. |
| **Bought / Sold** | BOT, SLD | The volume that traded at each price over the Delta Period: bought (market buys lifting the ask) and sold (market sells hitting the bid). |
| **Pull / Stack** | P/S B, P/S A | How the resting size at each price changed over a recent window, **10s** by default: negative when orders are pulled, positive when they are stacked. **Exclude Trades** leaves out the size that was filled, so only cancellations and new orders count. |
| **Trades** | | Recent trades at each price, drawn as bars or bubbles, with settings for the time window and the minimum size. |
| **Footprint** | | Traded volume at each price over time, the way a [footprint chart](https://takeprofit.com/docs/guide/platform/chart-widget/chart-types/Volume-Footprint.md) shows it. |
| **Total Volume** | TOTAL | The running total of resting size from the spread outwards, with its curve. |

Three more items in the same list change how the book is drawn rather than adding a column:

* **Bid/Ask in One Column** — merges the bid and ask columns into a single **BID/ASK** column beside the price.
* **Liquidity** and **Trade Heatmap** — shade the rows by how much is resting at them and how much traded there, so the busy levels stand out.
* **Cumulative Volume** — the stepped curve over the bid and ask bars.

## Templates

A template saves the whole layout: which columns are on, their order and width, and the view settings. Open the **Book Templates** menu at the left of the toolbar, or from the bottom of View and Settings:

* **Default** and a set of built-in layouts are ready to use. Pick one to switch to it.
* **Save as New Template** keeps your current layout as a template of your own.
* **Reset Changes** takes the layout back to the template you started from.

## View and Settings

Click the settings icon in the widget header to open **View and Settings**. Settings with a dotted underline explain themselves when you hover them.

**General**

* **Price Step** — the step multiplier, such as **x1000**.
* **Font Size** — the size of the ladder text. The rows grow with it.
* **Show Empty Rows** — shows price levels with no orders resting at them.
* **Show Spread Rows** — shows the empty levels inside the spread.
* **Bid/Ask Ratio** — shows or hides the ratio in the line above the ladder.
* **Auto-centering** — **When unfocused** brings the ladder back to the live price only while your cursor is outside the book, so the rows you are reading stay put. **No centering** leaves it where you scrolled.

**Trading**

* **DOM Trading Mode** — lets you place and manage orders by clicking the ladder. Turn it off to use the book for reading only.
* **P\&L Value** — the unit for P\&L: **Money**, **USD**, **%** or **Ticks**.
* **Distance Value** — the unit for the distance shown when you hover a row: **%**, **Ticks** or **Price**.

**Columns** — the columns and options described in [Columns](#columns).

**Display**

* **Volume In** — sizes in the **Base** asset or in the **Quote** currency.
* **Bars** — shows or hides the size bars.
* **Scale** — how the bars are scaled, such as **Linear**.
* **Transparency** — fades the smaller rows so the large ones stand out.

**Reset to Default** at the bottom restores the widget's default settings.

## Trading from the Order Book

Two ways in, depending on whether you want a form in front of you or not.

### Sending a level to Order Entry

Click any bid or ask row to open [Order Entry](https://takeprofit.com/docs/guide/trading/order-form.md) pre-filled at that price level — a level you spotted in the ladder becomes an order without retyping the price.

The form opens as a preview: nothing reaches the exchange until you review and confirm it, and while it is open the level stays in sync with the chart, the same way [chart trading](https://takeprofit.com/docs/guide/trading/chart-trading.md) works.

### Trading in the ladder

Click **Trade** in the toolbar and the widget becomes an order ladder: you place at a price row without opening a form, and your orders and position appear beside the prices they sit at.

A compact panel appears with the three things an order needs:

* **The account.** One row per connected account, split by **Spot** and **Futures** where the venue has both, so you can see which one an order will go to before you place it.
* **Quantity.** The size every button on the ladder will use.
* **Leverage**, where the account and instrument support it.

The gear in the panel opens **Trading Settings**, where you set the **Margin Mode** (**Cross**, **Isolated** or **Portfolio**, as the venue allows) and, on spot, the **Margin** checkbox. A new margin mode applies to all open positions on the account.

Below the buttons, **Session** shows your P\&L for the session, and **Cancel Buy**, **Cancel Sell**, **Cancel All**, **Flatten** and **Close** manage what you already have open.

Set the quantity first. The ladder places immediately at the price you click, so an empty quantity field is the one thing that will stop it.

> [!NOTE]
>
> The panel trades the account you pick here. If you keep several accounts on one venue, check the selector before your first click of the session.

#### Placing an order

Hover any bid or ask row and an add-order button appears across it. Click it and the order goes in at that row's price — below the market on the bid side, above it on the ask side.

With **Bid/Ask in One Column** on, you place orders in the **Orders Column**: a left click buys on a bid row and sells on an ask row, and a right click places the opposite side.

For the market itself, three buttons in the panel cover the common cases:

| Button | What it does |
| - | - |
| **Market** | Fills now at whatever the book offers. |
| **Bid** | Places at the current best bid. |
| **Ask** | Places at the current best ask. |

> [!TIP]
>
> **Bid** and **Ask** are the ones to reach for when you want to join the queue rather than cross the spread — you sit at the touch instead of paying it.

#### Take Profit and Stop Loss

The **Take Profit** and **Stop Loss** chips in the panel attach exits to every order you place from the ladder. Click a chip to turn it on and set its distance from the order price. Where the venue allows it, a Take Profit can fill at a limit price with its own offset.

Before you click, the order preview shows the order, its quantity, and the Take Profit and Stop Loss prices it will get, with the expected result of each. If the venue cannot attach exits to that order, the preview says **TP/SL unavailable for this order**.

#### Your orders in the ladder

A working order shows as a badge on the price it is waiting at. Limit orders and trigger orders are drawn differently, so a stop sitting under your position does not read as another entry.

* **Cancel** from the **×** on the badge.
* **Drag a badge** to another row to move the order to that price — the same gesture as dragging a level on the chart, and the fastest way to follow a level that has moved.
* **An order resting away from the current price** keeps its badge pinned to the top or bottom edge of the ladder, so you never lose track of one that has scrolled out of view.
* **Cancel Buy**, **Cancel Sell**, **Cancel All** and **Flatten** in the panel reach these orders too — see [Order Entry](https://takeprofit.com/docs/guide/trading/order-form.md).

#### Your position against the book

An open position is marked on the price scale at its average entry, so you can read it against the liquidity above and below it. Its **Take Profit** and **Stop Loss** levels appear in the ladder as their own labels, and a level still pending is drawn differently from one the venue has accepted.

> [!NOTE]
>
> **Change TP/SL on an open position elsewhere.** The ladder presets them for new orders only. To move them later, use [the chart](https://takeprofit.com/docs/guide/trading/chart-trading.md) or the Positions tab of the [Account widget](https://takeprofit.com/docs/guide/trading/account-tracking.md).

#### Hotkeys

The panel's buttons have hotkeys, so you can trade the ladder without the mouse while the widget has focus:

| Action | Hotkey |
| - | - |
| Buy Market / Sell Market | **Alt + U** / **Alt + Shift + U** |
| Buy at Bid / Sell at Bid | **Alt + J** / **Alt + Shift + J** |
| Buy at Ask / Sell at Ask | **Alt + ,** / **Alt + Shift + ,** |
| Cancel Buy Orders / Cancel Sell Orders | **Alt + Z** / **Alt + Shift + Z** |
| Cancel All Orders | **Alt + .** |
| Flatten | **Alt + B** |
| Close Position | **Alt + Shift + B** |
| Recenter on Market | Not set |

On Mac, **Alt** is **Option**. Change any of them, or give **Recenter on Market** a key, on the **Trading** tab of [Keyboard Hotkeys](https://takeprofit.com/docs/guide/getting-started/Workspaces.md#keyboard-hotkeys).

#### When the ladder stays read-only

Trading switches itself off, and the panel disappears, when there is nothing to trade: an instrument that is not tradable on TakeProfit, or a selected account that cannot trade it — the wrong market, or a key without trading permission. The book keeps working as a market-reading tool either way. For the second case, pick another account in the selector, or see [Brokers & Exchanges](https://takeprofit.com/docs/guide/trading/brokers) for what each venue allows.

## How to Read Market Depth

* **Large bid walls** can act as support, and **large ask walls** as resistance.
* **Thin liquidity** can lead to faster moves through those prices.
* **An imbalance** in the Bid/Ask ratio can point to directional pressure.
* **Pull / Stack** shows whether a wall is real: size that keeps getting pulled as price approaches was never meant to fill.
* **Delta** and **Bought / Sold** show which side is pushing at a price, and whether a wall is absorbing it.

The book is dynamic: orders appear, move and disappear quickly, so read it together with what is trading, not on its own.


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