> For the complete documentation index, see [llms.txt](https://rwaperp-1.gitbook.io/rwaperp-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rwaperp-1.gitbook.io/rwaperp-docs/trading-mechanics/order-types.md).

# Order Types

RWAPerp is a decentralized exchange (DEX) that supports Limit, Market, Immediate-or-Cancel (IOC), Fill-or-Kill (FOK), and Post-Only order types, along with Reduce-Only instructions.

Orders are submitted through the RWAPerp frontend to its shared order book, processed by the underlying off-chain matching engine, with real-time order and fill status updates via WebSocket.

<table data-header-hidden data-search="false"><thead><tr><th></th><th></th></tr></thead><tbody><tr><td>Order Type</td><td>Description</td></tr><tr><td>Limit</td><td>Executes at the specified or better price. Supports GTC (Good-till-Cancelled) and GTD (Good-till-Date).</td></tr><tr><td>Market</td><td>Executes immediately at the best available price. Speed is guaranteed, price is not.</td></tr><tr><td>IOC (Immediate-or-Cancel)</td><td>Fills the available portion immediately; the remainder is automatically cancelled and does not enter the order book.</td></tr><tr><td>FOK (Fill-or-Kill)</td><td>Must be filled entirely or cancelled entirely. No partial fills.</td></tr><tr><td>Post-Only</td><td>Guarantees maker status; cancelled if it would immediately take liquidity. Used to earn maker rebates.</td></tr><tr><td>Reduce-Only</td><td>Only reduces an existing position; cannot open a new position in the opposite direction. Typically used with take-profit and stop-loss orders.</td></tr></tbody></table>


---

# 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 dynamically by asking a question.

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

```
GET https://rwaperp-1.gitbook.io/rwaperp-docs/trading-mechanics/order-types.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
