> For the complete documentation index, see [llms.txt](https://docs.niza.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.niza.io/authenticated-endpoints/orders/create-order.md).

# Create Order

## Create a new order

<mark style="color:orange;">`POST`</mark> `/orders`

Creates new order

**Headers**

| Name       | Value                 |
| ---------- | --------------------- |
| X-API-Key  | `API Key`             |
| X-API-Sign | `Generated Signature` |

**Body**

<table><thead><tr><th>Name</th><th>Type</th><th data-type="checkbox">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>order_direction</code></td><td>string</td><td>true</td><td>One of: <code>buy,sell</code></td></tr><tr><td><code>order_type</code></td><td>string</td><td>true</td><td>One of: <code>market,limit</code></td></tr><tr><td><code>pair</code></td><td>string</td><td>true</td><td>Market pair example <code>NIZA/USDT</code></td></tr><tr><td><code>volume</code></td><td>string</td><td>true</td><td>The order volume</td></tr><tr><td><code>price</code></td><td>string</td><td>true</td><td>Required if <code>order_type</code> is different from <code>market</code></td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "success": true,
    "message": "Request processed successfully.",
    "code": 200
}
```

{% endtab %}

{% tab title="422" %}

```json
{
    "message": "The price field is required.",
    "errors": {
        "price": [
            "The price field is required."
        ]
    }
}
```

{% endtab %}
{% endtabs %}
