> 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/rwa-perp-b2b-api/rest-api-reference/trading-and-orders/post-v1-batch-order.md).

# post v1 batch order

`POST /v1/batch-order`

**Authentication:** RWA

**Rate limit:** 1 request per second

## Description

Creates up to 10 orders in one request. Send the orders in the `orders` JSON array. Each order in the request counts as one order toward the overall create order rate limit.

{% hint style="warning" %}
**Reduce-only limitation:** `POST /v1/batch-order` does not support or apply `reduce_only`. Do not include `reduce_only` in a batch order item. If reduce-only execution is required, submit each order separately using `POST /v1/order` with `reduce_only: true`. Without this constraint, an order may increase a position instead of reducing it.
{% endhint %}

{% hint style="info" %}
This endpoint requires `trading` scope in API key.
{% endhint %}

## Parameters

| Name            | Location | Type   | Required | Description                                                                                 | Example |
| --------------- | -------- | ------ | -------- | ------------------------------------------------------------------------------------------- | ------- |
| `x-recv-window` | header   | number | No       | Use this parameter to control the timeout threshold for placing order, unit in milliseconds | `20`    |

## Request body

| Field                       | Type                 | Required | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| --------------------------- | -------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `orders`                    | array                | No       | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].symbol`           | string               | Yes      | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].client_order_id`  | string               | No       | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].order_type`       | string               | Yes      | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].order_price`      | number               | No       | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].order_quantity`   | number               | No       | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].order_amount`     | number               | No       | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].visible_quantity` | number               | No       | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].side`             | string               | Yes      | —                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `orders[].order_tag`        | string               | No       | <p>Optional tag for the order. Supports two formats:<br><br>- Referral code: plain string (e.g., <code>REFERRAL2026</code>) - overrides referral relationship<br>- Custom trading fee: <code>enum:\<owning\_broker\_id>:\<enum\_id></code> (e.g., <code>enum:broker\_b:GRID\_PRO</code>) - adds the custom fee and preserves the existing referral relationship<br><br>New custom-fee-tagged orders must use the current three-segment format. Legacy <code>enum:\<enum\_id></code> tags are supported only on orders accepted before cutover. Maximum length: 128 characters. Cannot be modified after order placement. Example: <code>enum:broker\_b:GRID\_PRO</code></p> |
| `orders[].margin_mode`      | `CROSS` / `ISOLATED` | No       | Margin mode for the order. Default: the symbol's current default margin mode.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

## Responses

### HTTP 200

OK

| Field                         | Type    | Required | Description                                                   |
| ----------------------------- | ------- | -------- | ------------------------------------------------------------- |
| `success`                     | boolean | Yes      | Indicates whether the request was successful. Example: `True` |
| `timestamp`                   | integer | No       | Server timestamp in milliseconds. Example: `1702989203989`    |
| `data`                        | object  | Yes      | —                                                             |
| `data.rows`                   | array   | Yes      | —                                                             |
| `data.rows[].order_id`        | number  | No       | Example: `13`                                                 |
| `data.rows[].client_order_id` | string  | No       | Example: `testclientid`                                       |
| `data.rows[].order_type`      | string  | No       | Example: `LIMIT`                                              |
| `data.rows[].order_price`     | number  | No       | Example: `100.12`                                             |
| `data.rows[].order_quantity`  | number  | No       | Example: `0.987654`                                           |
| `data.rows[].error_message`   | string  | No       | Example: `none`                                               |


---

# 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/rwa-perp-b2b-api/rest-api-reference/trading-and-orders/post-v1-batch-order.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.
