# POST

## Post Order

<mark style="color:green;">`POST`</mark> `https://api.swivel.exchange/orders`

This endpoint allows you to request the detailed state and parameters for a given order.\
\
Returns the order's parameters as well as current order state and initial timestamp.

#### Request Body

| Name                                    | Type   | Description                                                                                                                                                                                                                     |
| --------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Order<mark style="color:red;">\*</mark> | object | <p>Order object containing:<br>signature: string<br>key: string<br>maker: string<br>underlying: string<br>vault: boolean</p><p>exit: boolean <br>principal: string<br>premium: string<br>maturity: string<br>expiry: string</p> |

{% tabs %}
{% tab title="200 Order successfully posted." %}

{% endtab %}

{% tab title="400 E.g. Invalid order principal" %}

```
{
    "error": {
        "message": "order principal"
    }
}
```

{% endtab %}

{% tab title="404 Unable to place order in the provided market." %}

```
{    "message": "Unable to place order in specified market."}
```

{% endtab %}
{% endtabs %}


---

# 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.swivel.finance/swivel-v2.0.0/developers/exchange/post.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.
