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

# What Is Reya

Reya is a high-performance onchain exchange that lets you trade equities, commodities, indices and crypto either as perpetual futures or as spot assets.

You can execute trades directly through the app, programmatically via the API (see [Developer Docs](https://docs.reya.xyz/developers)), or via Reya Agentic, a novel agentic trading terminal that lets you build trading theses with an agent that then monitors data sources and other signals to execute strategies for you 24/7.

The exchange today operates via a purpose-built, low-latency, high-throughput matching engine that matches off-chain, with every resulting trade settling onchain, where collateral is held by smart contracts rather than by an operator. However, the infrastructure will evolve to make matching and clearing verifiable on Ethereum, using a trading-specific based rollup with zk proofs, in which matching becomes part of the chain itself. [Architecture (at a glance)](https://docs.reya.xyz/get-started/architecture-at-a-glance.md) explains how today's system works and how the based design will differ.

Fundamentally, Reya is built on the belief that 12 months from now the vast majority of trading volume will go through agents, not apps. Reya is building infrastructure that allows this vision to become a reality. See [Reya Agentic](https://docs.reya.xyz/trading/reya-agentic.md) for more detail.

## What runs today

* **Reya Agentic.** Describe a strategy in plain language, review the rules it becomes, test it in Paper and run it 24/7 from an Agentic Account. The agent can trade but cannot deposit or withdraw, and a strategy closes its positions and ends when it reaches the maximum loss you set. In early access. See [Reya Agentic](https://docs.reya.xyz/trading/reya-agentic.md).
* **A central-limit order book.** Orders are matched with price-time priority and can be placed from the app or over REST and WebSocket APIs.
* **Onchain settlement.** Every fill is validated and settled by smart contracts on Reya Network, which is the source of truth for positions and balances. A trade is final once it has settled.
* **Self-custody.** Deposits stay in Reya's smart contracts. Orders are authorised by wallet signatures, and you can authorise separate signer wallets for trading and remove them at any time.
* **Crypto and traditional markets.** Perpetual futures on crypto, equities, indices and commodities, trading 24/7, alongside spot markets. See [Markets](https://docs.reya.xyz/trading/markets.md).
* **One margin balance per account.** All positions in a margin account draw on one shared margin balance, which includes unrealised PnL. Collateral can be posted in a range of supported tokens, valued with haircuts, and PnL settles in USDC. See the [Margin System](https://docs.reya.xyz/trading/margin-system.md).
* **Built-in risk controls.** Pre-trade margin checks, stop-loss and take-profit orders, cancel-on-disconnect, and a [liquidation waterfall](https://docs.reya.xyz/trading/liquidation-engine.md) that steps in when an account falls below its margin requirement.

Reya Network is Reya's own Ethereum Layer 2, built on a customised Arbitrum Orbit stack. It currently runs with a single sequencer.

The [Trading](https://docs.reya.xyz/trading/perpetual-futures.md) section explains margin and liquidations. The [developer documentation](https://docs.reya.xyz/developers) covers order types, the API and settlement.

## Where Reya is going

{% hint style="info" %}
This section describes design intent, not live functionality.
{% endhint %}

Reya is working towards two things. The first is agents that make trading decisions themselves, inside risk limits they cannot change, running close enough to the matching engine to compete with professional firms. Today a strategy is a set of fixed rules that you approve; as models get faster, more of the decision moves to the agent.

The second is to remove the single operator from sequencing and to make matching and clearing verifiable from Ethereum, using a trading-specific based rollup in which matching becomes part of the chain itself. [Architecture (at a glance)](https://docs.reya.xyz/get-started/architecture-at-a-glance.md) explains how today's system works and how the based design would differ.
