# Query Order

## Get Order

<mark style="color:blue;">`GET`</mark> `https://api.abcc.com/api/v1/exchange/orders/:order_id`

#### Path Parameters

| Name      | Type   | Description                                |
| --------- | ------ | ------------------------------------------ |
| order\_id | string | ID of the cake to get, for free of course. |

#### Query Parameters

| Name        | Type   | Description                                                |
| ----------- | ------ | ---------------------------------------------------------- |
| signature   | string |                                                            |
| access\_key | string |                                                            |
| tonce       | string | Timestamp of the current time in milliseconds (Unix epoch) |

{% tabs %}
{% tab title="200 Data successfully retrieved." %}

```
{
	"order": {
		"id": 4936595,
		"created_at": "2021-08-12T06:49:11Z",
		"market_code": "btcusdt",
		"side": "buy",
		"state": "done",
		"ord_type": "market",
		"price": null,
		"avg_price": "41238.11",
		"volume": "0.1",
		"remaining_volume": "0.0",
		"executed_volume": "0.1",
		"trades_count": 2,
		"trades": [{
			"id": 425760131,
			"price": "41188.27",
			"volume": "0.026298",
			"funds": "1083.16912446",
			"market_code": "btcusdt",
			"created_at": "2021-08-12T06:49:11Z",
			"side": "buy"
		}, {
			"id": 425760133,
			"price": "41200.0",
			"volume": "0.073702",
			"funds": "3036.5224",
			"market_code": "btcusdt",
			"created_at": "2021-08-12T06:49:11Z",
			"side": "buy"
		}]
	}
}
```

{% endtab %}
{% endtabs %}

**OUTPUT EXPLANATION**

| Parameter         | Type    | Explanation                            |
| ----------------- | ------- | -------------------------------------- |
| id                | Integer | ID                                     |
| created\_at       | String  | order time                             |
| market\_code      | String  | The only code for the market           |
| side              | String  | Buy and sell type                      |
| state             | String  | status                                 |
| ord\_type         | String  | Order type                             |
| price             | String  | Order price                            |
| avg\_price        | String  | The average price of transactions      |
| volume            | String  | Initial pending order volume           |
| remaining\_volume | String  | The remaining amount of pending orders |
| executed\_volume  | String  | Executed pending order volume          |
| trades\_count     | Integer | Number of transactions                 |

SIDE

| Parameter | Type   | Explanation |
| --------- | ------ | ----------- |
| buy       | String | buy         |
| sell      | String | sell        |

STATE

| Parameter | Type   | Explanation           |
| --------- | ------ | --------------------- |
| wait      | String | Pending order         |
| done      | String | Completed transaction |
| cancel    | String | Canceled              |

ORD\_TYPE

| Parameter | Type   | Explanation  |
| --------- | ------ | ------------ |
| limit     | String | Limit order  |
| market    | String | Market order |


---

# 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://abcc-docs.gitbook.io/api/spot-trade/query-order.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.
