> For the complete documentation index, see [llms.txt](https://resources.defirisk.intotheblock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.defirisk.intotheblock.com/compound-v2/total-debt.md).

# Total Debt

**Overview**

The Total Debt is a dynamic indicator that fluctuates with borrower activity, including new loans being taken out and existing loans being repaid. It includes:

* **Current Outstanding Loans:** The total value of all active loans that have yet to be repaid.
* **Historical Borrowing Activity:** While primarily concerned with current outstanding amounts, trends in this indicator can also reflect historical borrowing activity and demand patterns over time.

**How can I use it?**

<figure><img src="/files/Ordtfh9v05IaWXNjiCUF" alt=""><figcaption></figcaption></figure>

This indicator directly measures the demand for borrowing within the protocol. A high total borrowed amount suggests strong user engagement and a need for the capital offered by the protocol, indicating its relevance and utility in the market.

In addition, the total borrowed amount influences the interest rates in the protocol through supply and demand mechanics. Higher borrowing demand can lead to higher interest rates, which can attract more lenders to the platform, balancing the supply with the demand.

Finally, the borrowing activity within a DeFi lending protocol can provide broader economic insights, such as the prevailing sentiment among crypto investors, trends in leverage use, and the overall health of the crypto market.

<br>


---

# 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://resources.defirisk.intotheblock.com/compound-v2/total-debt.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.
