> For the complete documentation index, see [llms.txt](https://docs.origami.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.origami.tech/reference/grid-language/structures/orderbook.md).

# Orderbook

The Orderbook structure — the trading pair plus ask and bid arrays of OrderBookUnit, sorted by price.

The Orderbook structure in Origami Tech represents live bid and ask data, providing a foundation for liquidity and market depth analysis.

<details>

<summary><code>Orderbook</code></summary>

`Orderbook.symbol [str]` returns pair for orderbook adapted for exchange (ex: `ETH-USDT`)

`Orderbook.ask [array]` array of `OrderBookUnit` sorted by price (ascending)

`Orderbook.bid [array]` array of `OrderBookUnit` sorted by price (descending)

</details>
