# 订单类型

### 订单类型 <a href="#order-types" id="order-types"></a>

Raydium Perpetual 支持 **5** 订单类型：

**市场** 以订单簿中当前可获得的最佳价格立即买入或卖出。市价单会与现有订单匹配，直到您的数量全部成交。如果流动性不足以成交全部数量，任何未成交部分都会被取消。

**限价** 以您选择的价格（您的 **限价**）或更优价格买入或卖出。限价单只有在市场达到您的价格时才会成交。

**止损单（触发单）** 止损单在市场触及您的 **触发（止损）价格**之前保持不激活状态。一旦被触发，它就会变为一个有效订单。

* **止损市价单**：当被触发时，它会变为一个 **市价单** 并在下一个可用价格成交。
* **止损限价单**：当被触发时，它会变为一个 **限价单** ，按您指定的限价执行，并且只有在市场达到该价格时才会成交。

**阶梯订单** 阶梯订单会将一个较大的订单拆分为多个较小的限价单，并分布在一个价格区间内。这对于逐步建仓或平仓很有用。

### 订单标志 <a href="#order-flags" id="order-flags"></a>

**IOC（立即成交否则取消）** 以您的限价（或更优价格）尽可能立即成交。任何未成交数量都会被取消。

**FOK（全部成交或取消）** 要么以您的限价（或更优价格）立即全部成交，要么在不部分成交的情况下被取消。

**Post Only** 确保您的订单增加流动性（maker）。如果该订单在挂出时会立即成交，则会被取消，而不是消耗流动性。

**仅减仓** 阻止订单增加您的持仓。它只能减少（或关闭）该市场中的现有持仓。如果您没有持仓，或者该订单会增加持仓，那么该订单不会作为增仓执行。


---

# Agent Instructions: 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:

```
GET https://docs.raydium.io/raydium/use-raydium/use-raydium-zh/mian-xiang-jiao-yi-zhe/raydium-perps/ding-dan-lei-xing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
