# Unrealized PnL

**Unrealized PnL (uPnL**) is the unrealized amount of the user's profit or loss if closing a position with current prices:

![](https://lh5.googleusercontent.com/1pktS5ndsSVr6tJ_mL5DDgO72XLUxUD49_y7j4OH2t5Q0daxZvYjXLjGodgLq3D5H1BKRrgeKABaHhXpKumYWi6yQC_NUg90C-lOqsDfqPMe6w8EiQVeRt3Ot0LCqt-LCy1kyuWS7veyw-ZZj5Wnj94)

> **Example:** Alice has 10,000 USDC on her margin account, and Bob has 6,000 USDC on his margin account. The BTC price is 33,520 USDC. At 15:00 Alice sells 1 BTC futures and Bob buys 1 BTC futures. The collateral for a position in both cases is 10%, or 0.1 BTC or 3,352 USDC.
>
> Suppose the BTC price rises by 5% to 35,200 USDC by 22:00. Alice's uPnL will be -1680 USDC, and Bob's uPnL will be 1,680 USDC. Collateral is still 10% of the price, or 3,520 USDC. uPnL is converted to the margin amount when the trade is closed.


---

# 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://docs.spin.fi/tech-documentation/futures/unrealized-pnl.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.
