# User positions

<table><thead><tr><th width="165.5">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>Base amount</td><td><p>User’s ETH collateral: <br>Total user ETH = Base amount * Base Collateral Coef</p><p></p><p>or <br></p><p>User’s discounted ETH debt: <br>Total base debt = Base amount * Accrued rate</p></td></tr><tr><td>Quote amount</td><td><p>User’s USDC collateral:<br>Total user USDC = Quote amount * Quote Collateral Coef</p><p></p><p>or </p><p></p><p>User’s discounted USDC debt: <br>Total quote debt = Quote amount * Accrued rate</p></td></tr><tr><td>Type</td><td><p>Type of position:</p><ul><li>Uninitialized (by default)</li><li>Lend (quote amount and base amount as collateral)</li><li>Short (quote amount - as collateral, base amount - as debt)</li><li>Long (quote amount - as debt, base amount - as collateral)</li></ul></td></tr><tr><td>Heap position</td><td><p>Index of position in leverage heap (short or long).</p><p>By default, 0 (meaning the id doesn’t exist in any leverage heaps). Otherwise, the index of the heap equals heap position minus 1.</p></td></tr></tbody></table>


---

# 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.marginly.com/protocol-architecture/pools/user-positions.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.
