> ## Documentation Index
> Fetch the complete documentation index at: https://docs.defiorbit.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Lending positions

> Check Aave V3, Morpho, and Kamino health, then load positions and calculations.

`at_risk` means the health factor is below 1.5. Summary calls are the cheap check. Bundles add calculations. List, bundle, and batch calls charge `pagination.total` on every page. See [Credits](/credits).

## Aave V3

<Steps>
  <Step title="Check every chain">
    [Get Aave V3 Summary](/api-reference/aave-v3/summary) returns chain ids and an `at_risk` flag. Optional `market_id` is `main`, `lido`, or `horizon`.

    ```bash theme={null}
    curl --location 'https://api.defiorbit.xyz/v1/lending/aavev3/summary?wallet=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045' \
      --header 'Authorization: Bearer YOUR_API_KEY'
    ```
  </Step>

  <Step title="List raw positions">
    [Get Aave V3 Position](/api-reference/aave-v3/position) is the lighter read, without full calculations (3 credits per matching wallet/chain result).
  </Step>

  <Step title="Load calculations">
    [List Aave V3 Positions](/api-reference/aave-v3/bundle) is the bundle: live positions plus health factor, interest, LTV, and APY (15 credits per matching wallet/chain result). `target_health_factor` defaults to `1.5`.

    Risk and yield for one chain are [Get Position Risk](/api-reference/aave-v3/risk) and [Get Position Yield](/api-reference/aave-v3/yield). The chain id is in the path.
  </Step>
</Steps>

## Morpho

[Get Morpho Summary](/api-reference/morpho/summary) is at risk when any isolated market is below 1.5. [Get Position Risk](/api-reference/morpho/risk) and [Get Position Yield](/api-reference/morpho/yield) require `market_id`. Events and snapshots can omit it. Each event names its market.

## Kamino

[Get Kamino Summary](/api-reference/kamino/summary) takes a Solana wallet. [List Kamino Positions](/api-reference/kamino/position) returns obligations with calculations, including health factor, APY, and projections. Use it to discover an obligation address. [Get Kamino Bundle](/api-reference/kamino/bundle) returns the same item shape.

Events, snapshots, risk, and yield need the obligation address in the path plus `wallet` and `market_address`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.