> For the complete documentation index, see [llms.txt](https://docs.divergence-protocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.divergence-protocol.com/user-guide/short-options/expiry-withdrawal.md).

# ⏰Expiry Withdrawal

Following the expiration date, option pools can be settled by anyone through the oracle contract. If the calls (or puts) sold settle out of the money, your position turns profitable; otherwise, it incurs a loss.

### 💸Settle Short Position

Navigate to 'Dashboard-Position' to locate your short position. If the shorts expire out-of-the-money, you are in profit and one collateral can be withdrawn for each option token shorted. If not, you'll incur a loss, and your position will expire worthless.

### 💸Settle Liquidity Position

Navigate to 'Dashboard-Open Order' to locate your unfinalized liquidity position. The amount of collaterals you can claim from this position is determined by the following factors:

$$
YouCanReceive = Collateral Deposit + Fees + Premium - Settlement Value
$$

* **Deposit:** The amount of collaterals initially committed to the position, if any.
* **Fees:** Total amount of transaction fees you have earned.
* **Premium:** The amount of proceeds you received for selling the options.
* **Settlement Value:** Collateral payout to holders of options that expire profitably.

***Note: If the position is seeded with prior-purchased options,*****&#x20;any options holdings that remain unsold at the time of settlement will also be returned.** You will need to [exercise](/user-guide/long-options/exercise-options.md) them yourself.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.divergence-protocol.com/user-guide/short-options/expiry-withdrawal.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
