> ## Documentation Index
> Fetch the complete documentation index at: https://docs.juicyway.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Orders

> Retrieve a list of orders.

```json theme={null}
GET /exchange/orders
```

**Parameters:**

* `before` (string, optional): Cursor for pagination (before).

* `after` (string, optional): Cursor for pagination (after).

* `limit` (integer, optional): Limit the number of orders returned.

* `type` (string, optional): Filter by order type (`buy` or `sell`).

* `status` (string, optional): Filter by order status (`open`, `cancelled`, `rejected`, `filled`, `expired`, `closed`).

* `price` (integer, optional): Filter by order price.

**Sample Request**

```bash theme={null}
curl -X GET "https://exchange.spendjuice.com/v1/exchange/orders?limit=10&type=buy" \
-H "Authorization:  YOUR_API_KEY"
```

**Sample Response**

```json theme={null}
{
  "data": [
    {
      "accepted_at": "2023-12-23T17:55:42.919523",
      "average_fill_price": 80000,
      "business_id": "dd625bec-b1a3-466e-867e-c91ae0b6e71e",
      "correlation_id": "7da742ea-a1bc-11ee-b907-560f156a658b",
      "created_at": "2023-12-23T17:55:42.911",
      "expires_at": null,
      "id": "7da75a46-a1bc-11ee-9a32-560f156a658b",
      "min_qty": null,
      "min_quote_qty": null,
      "percent_filled": 10000,
      "price": 80000,
      "price_type": "market",
      "qty": 1.0,
      "quote_qty": null,
      "status": "filled",
      "symbol": "USD-NGN",
      "time_in_force": "gtc",
      "trades": [
        {
          "buy_order_id": "7da75a46-a1bc-11ee-9a32-560f156a658b",
          "commission": 0,
          "correlation_id": "7da742ea-a1bc-11ee-b907-560f156a658b",
          "created_at": "2023-12-23T17:55:42.921",
          "id": "7da8e726-a1bc-11ee-80cf-560f156a658b",
          "price": 80000,
          "sell_order_id": "7d97c0b8-a1bc-11ee-b240-560f156a658b",
          "size": 1.0,
          "symbol": "USD-NGN"
        }
      ],
      "type": "buy",
      "updated_at": "2023-12-23T17:55:42.911",
      "user_id": "b101f718-d133-450c-a572-c281c7341803"
    }
  ],
  "pagination": {
    "after": "b101f718-d133-450c-a572-c281c7341803",
    "before": null,
    "limit": 10
  }
}
```
