# Real 7d APY

The 7d Real APY as displayed on the Swap page shows how profitable providing liquidity has been the last 7 days, compared to just holding both tokens.

<pre class="language-javascript"><code class="lang-javascript"><strong>7_day_real_apy = ((lp_valuation_now / lp_valuation_7_days_ago)^(365 / 7) - 1) * 100;
</strong></code></pre>

With `lp_valuation_now` being the value of 1 LPSTAB token currently.

And `lp_valuation_7_days_ago` being the value of 1 LPSTAB token 7 days ago **WITH CURRENT STAB and XRD PRICES!**

Because for both valuations the current asset prices are used, it makes for a fair comparison between holding and providing liquidity.


---

# 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.ilikeitstable.com/stab-protocol/technical-info/real-7d-apy.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.
