> For the complete documentation index, see [llms.txt](https://satangdev.gitbook.io/satang-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://satangdev.gitbook.io/satang-api/apis-v3/private/order.md).

# Orders

NOTE: This endpoint requires API key and request signing, for more information please refer to Authentication section.

## Query Order

<mark style="color:blue;">`GET`</mark> `htts://satangcorp.com/api/v3/orders`

Check an order's status.

#### Query Parameters

| Name    | Type   | Description                                                    |
| ------- | ------ | -------------------------------------------------------------- |
| pair    | string | A string representing paring, can be 'btc\_thb' 'eth\_thb' ... |
| orderId | number | Order ID                                                       |

#### Headers

| Name          | Type   | Description                                          |
| ------------- | ------ | ---------------------------------------------------- |
| Signature     | string | This field require encrypt of API key and API Secret |
| Authorization | string | This field require API key                           |

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

```
{
    "symbol": "btc_thb",
    "orderId": 7,
    "orderListId": -1,
    "clientOrderId": "",
    "price": "1",
    "origQty": "0",
    "origQuoteOrderQty": "2",
    "executedQty": "0",
    "cummulativeQuoteQty": "0",
    "status": "NEW",
    "timeInForce": "IOC",
    "type": "MARKET",
    "side": "BUY",
    "stopPrice": "0",
    "icebergQty": "0",
    "time": 1596439026959,
    "updateTime": 1596439026959,
    "isWorking": true
}
```

{% endtab %}

{% tab title="404 Could not find an order matching this query." %}

```
{
    "Code": "not_found",
    "Message": "",
    "Op": [
        "get_order_by_id"
    ]
}
```

{% endtab %}
{% endtabs %}
