# Order Book

### What is an Order Book?&#x20;

An Orderbook is an trading protocol, used primarily in the stock exchange but has recently been an emerging presence in the crypto space. A *matching engine* uses this to determine which orders can be fully or partially executed.&#x20;

#### Buy and Sell&#x20;

The two main participants in an order book are the 'buyer' and the 'seller'. The buyer (the 'buy') bids for a certain amount of tokens at a specific price. This demand is then satisfied by the seller (the 'sell'), who asks for a particular fee for their tokens. A list of 'buys' and 'sell(s)' is generated with the matching engine pairing deals that satisfy both parties.&#x20;

#### Visual Representation

An *order book depth chart* dynamically shows the list of bids and asks for a specific commodity. A general rule of practice is that the buys are shown on the left and the sells on the right.&#x20;

<figure><img src="/files/xcfj7NSW2y5ttNeSqc3e" alt=""><figcaption><p>Figure 1 - An Order book depth chart shows the buys in green, and the sells on the right are in red. The x-axis is the unit price; the y-axis is cumulative order depth (<a href="https://en.wikipedia.org/wiki/Order_book#/media/File:Order_book_depth_chart.gif">https://en.wikipedia.org/wiki/Order_book#/media/File:Order_book_depth_chart.gif</a>)</p></figcaption></figure>

#### Order Book Terminology&#x20;

**Price Point**&#x20;

When multiple orders are the same price, they are referred to as a *price point*, meaning that if a bid comes at that *price level*, the sell orders could potentially fulfil it.   &#x20;

**Top of the book**

The top of the book is the highest buy and the lowest sell.&#x20;

**Book depth**

The book depth is the number of price levels available at a particular time.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.candyswap.gg/information/order-book.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
