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

# 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 |
