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

# 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>
