lendborrow

Get User Positions

Deliver a comprehensive snapshot of your active lending and borrowing positions across supported markets. The response details each position’s collateral (such as aTokens and underlying assets), balance scales, and collateral usage status, offering a clear picture of your overall exposure and risk profile.

💡 Compute Unit Value: 115 (Fixed)

get/defi/v1/lendborrow/userpositions

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/lendborrow/userpositions
  • Auth
    API key in header X-API-Key

Query parameters

addressstring required

Public address of the sender.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
lendborrowId'1000' | '1003' | '1005' | '1200' | '1208' | '1203' | '1204' | '1205' | '1206' | '1207' | '1100' | '1300' | '1302' | '1400' | '1401' | '1402' | '1403' | '1404'

The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.

Example:1000
vsCurrenciesstring

A comma-separated list of currency symbols to convert the amount into, such as 'USD,EUR'. This parameter is optional and allows retrieving values in multiple fiat currencies.

Example:usd,eur,gbp
assetsstring

Comma-separated list of token addresses to filter specific assets. If omitted, data for all supported assets will be returned.

Example:0x5f98805a4e8be255a32880fdec7f6728c6568ba0,0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2
useCustomVaultsboolean

A boolean flag to scope the API request. If true, the request will be processed using the partner's dedicated vaults. If false or omitted, it uses the standard public pools.

marketIdstring

Specifies the market Id of any market in Morpho.

Example:0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5
vaultAddressstring

Specifies the vaultAddress of any vault in Morpho.

Example:0xa258C4606Ca8206D8aA700cE2143D7db854D168c

Response

Successful response

statusnumber
msgstring

Example response

{
  "status": 200,
  "msg": "success",
  "data": [
    {
      "underlyingAsset": "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4",
      "scaledATokenBalance": "1894191440211515",
      "usageAsCollateralEnabledOnUser": true,
      "aToken": "0x191c10Aa4AF7C30e871E70C95dB0E4eb77237530",
      "currentBalance": "1903493736006277",
      "rewardsAPYPercentage": "0.00",
      "accruedRewards": "9302295794762",
      "estimatedSupplyAPY": "1.03",
      "prices": {
        "usd": [
          {
            "0xf97f4df75117a78c1a5a0dbb814af92458539fb4": "14.280231987048252"
          }
        ]
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.