> For the complete documentation index, see [llms.txt](https://docs.orriss.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.orriss.xyz/overview.md). Agents can also search and read this documentation through its [MCP server](https://docs.orriss.xyz/~gitbook/mcp).

# Orriss

How Orriss prices swaps, allocates liquidity and settles positions on Solana.

Orriss is a Solana automated market maker that quotes liquidity at percentage offsets from an external market price. A liquidity provider (LP) funds selected price bands, called **bins**. Each bin holds its own inventory, executes at its midpoint and credits fees to the LPs who supplied it.

<figure><img src="https://2901705416-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fwgb6N4AUimhmgBryw2j4%2Fuploads%2Ff7SLy78uj7n0DOfd2FpB%2Forriss-overview.png?alt=media" alt="Orriss home page with navigation and the Try the first pool button."><figcaption><p>Orriss home page with navigation and the first-pool entry point</p></figcaption></figure>

## What happens when SOL moves?

Suppose the reference is 100 USDC per SOL. The bin immediately above it spans 100 to 101 and quotes at 100.50. If the reference rises to 105, the same bin spans 105 to 106.05 and quotes at 105.525. The refresh updates what the bin will charge on its next fill. Its token balances stay in place until someone trades, deposits or withdraws.

That distinction matters when placing liquidity. A bin can follow the price and still run out of the token a trader wants to buy. An LP earns swap fees when an order actually consumes inventory in that bin.

## Start here

| If you want to…                                           | Read                                                                                                                                                                                                 |
| --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Read a terminal quote, check its route and confirm a swap | [Trading in the terminal](https://docs.orriss.xyz/trading.md)                                                                                                                                        |
| Choose a range, inspect balances and close a position     | [Providing liquidity](https://docs.orriss.xyz/providing-liquidity.md)                                                                                                                                |
| Budget the assets and service cost for a new token market | [Creating a market](https://docs.orriss.xyz/creating-a-market.md)                                                                                                                                    |
| Calculate a fill or value a position in atomic units      | [Bin pricing](https://docs.orriss.xyz/bin-pricing.md) · [Swap mathematics](https://docs.orriss.xyz/bin-pricing/swap-math.md) · [LP accounting](https://docs.orriss.xyz/bin-pricing/lp-accounting.md) |
| Decode a pool or trace where its price came from          | [Program reference](https://docs.orriss.xyz/program-reference.md) · [Reference prices](https://docs.orriss.xyz/bin-pricing/reference-price.md)                                                       |
| Track eligible trading, collected fees and referrals      | [Points and referrals](https://docs.orriss.xyz/points.md)                                                                                                                                            |
| Examine observed trades and reproduce the research model  | [Execution study](https://docs.orriss.xyz/research.md)                                                                                                                                               |

Throughout these docs, **SOL/USDC** means USDC per SOL in human-readable units. The token launch planner displays **token/SOL** as SOL per token. The program stores its price in quote-token atoms per whole SOL.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.orriss.xyz/overview.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
