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

# Orders

> Understanding order lifecycle and statuses on Centos Finance

## Order Statuses

Every order on Centos Finance goes through a lifecycle represented by its status. Understanding these statuses helps you track and manage your orders effectively.

| Status               | Description                                          |
| -------------------- | ---------------------------------------------------- |
| `PENDING_SUBMISSION` | Order received, awaiting exchange submission.        |
| `PROCESSING`         | Being processed by the order consumer.               |
| `RESTING`            | Live on the exchange order book.                     |
| `PARTIALLY_FILLED`   | Some quantity executed, remainder still resting.     |
| `EXECUTED`           | Fully filled.                                        |
| `CANCELLED`          | Cancelled by user or system.                         |
| `REJECTED`           | Rejected by exchange (see order details for reason). |
| `EXPIRED`            | GTD order past expiry time.                          |

### Lifecycle

```mermaid theme={null}
stateDiagram-v2
    [*] --> PENDING_SUBMISSION
    PENDING_SUBMISSION --> PROCESSING
    PROCESSING --> RESTING
    PROCESSING --> REJECTED
    RESTING --> PARTIALLY_FILLED
    RESTING --> EXECUTED
    RESTING --> CANCELLED
    RESTING --> EXPIRED
    PARTIALLY_FILLED --> EXECUTED
    PARTIALLY_FILLED --> CANCELLED
    EXECUTED --> [*]
    CANCELLED --> [*]
    REJECTED --> [*]
    EXPIRED --> [*]
```

### Aggregated Fields

Each order includes computed fields from its fills:

* **`traded_qty`** — Total quantity executed across all fills.
* **`average_price`** — Volume-weighted average fill price.
* **`fees_paid`** — Total fees incurred from fills.
