> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raydium.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Perpetuals order types

> Order types and flags available on Raydium Perps: market, limit, stop, scale, IOC, FOK, post-only, and reduce-only.

<Info>
  Raydium Perps uses an order book. Pick the order type based on whether you care more about immediate execution, exact price, or position management.
</Info>

## Order types

Raydium Perps supports these order types:

| Order type      | What it does                                                                                                                                      | When to use it                                                                 |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **Market**      | Buys or sells immediately against the best available order-book prices. Any unfilled remainder is canceled if the book cannot fill the full size. | You want immediate execution and accept possible slippage.                     |
| **Limit**       | Buys or sells at your limit price or better. The order fills only if the market reaches that price.                                               | You want price control and can wait for a fill.                                |
| **Stop market** | Stays inactive until the trigger price is reached, then becomes a market order.                                                                   | You want an execution trigger and prioritize getting out or in once triggered. |
| **Stop limit**  | Stays inactive until the trigger price is reached, then becomes a limit order.                                                                    | You want a trigger but still want a limit price.                               |
| **Scale**       | Splits one larger order into multiple smaller limit orders across a price range.                                                                  | You want to enter or exit gradually.                                           |

## Order flags

Order flags change how limit-style orders behave.

| Flag            | Behavior                                                                                                                       |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| **IOC**         | Immediate-or-cancel. Fills as much as possible immediately at your limit price or better, then cancels the unfilled remainder. |
| **FOK**         | Fill-or-kill. Fills the entire order immediately at your limit price or better, or cancels with no partial fill.               |
| **Post-only**   | Adds liquidity as a maker. If it would match immediately, it cancels instead.                                                  |
| **Reduce-only** | Prevents the order from increasing your position. It can only reduce or close an existing position in that market.             |

## User checks

Before submitting an order, confirm:

* Market and direction are correct.
* Size and leverage match your intent.
* Stop trigger and limit price are not inverted.
* Reduce-only is enabled when you only intend to close or reduce exposure.
* Post-only is enabled when you want maker behavior.

## Where to go next

* [`user-flows/perpetuals`](/user-flows/perpetuals) — start trading Raydium Perps.
* [`user-flows/perpetuals-trading-basics`](/user-flows/perpetuals-trading-basics) — perps risk basics.
* [`user-flows/perpetuals-trading-fees`](/user-flows/perpetuals-trading-fees) — maker and taker fees.
