---
title: "Get user market portfolio"
method: GET
path: "/api/v1/users/{address}/markets"
tags: ["User"]
---

# Get user market portfolio

`GET /api/v1/users/{address}/markets`

## Path parameters

- `address` string, required — The user account address

## Query parameters

- `with_text` boolean — Include text variation fields
- `with_value` boolean — Calculate and include USD values for amounts, where applicable

## Response `200`

Success response

- object — Object data success response
  - `data` UserMarket, required
    - `borrow` UserBorrowMarket, required
      - `accounts` UserBorrowMarketAccount[], required — Market sub-accounts for the user
        - `index` integer, required — Account index
        - `collaterals` UserCollateralAssetPool[], required — Account collateral allocations
          - `asset_info` AssetInfo, required — Asset identifiers with associated metadata
            - `asset` AssetSpec, required — Provides a unique identifier for an asset for use throughout the Neptune API. IDs are unique across asset domains (contract tokens, native denoms, etc)
              - …
            - `metadata` AssetMetadata, required — Additional metadata for assets
              - …
            - `classification` union, required — The asset's classification metadata. Assets are classfied to provide context on their usage throughout the Neptune API (e.g. regular assets, neptune receipt tokens, LSTs, etc.) Each asset belongs to only a single classification type. This object contains metadata pertaining to the given classification. While some fields may be common among the distinct classifcations, each classification is distinct and subject to independent change.
              - …
          - `amount` string, required — Amount of this asset which is actively collateralized
          - `extra` object, required
            - `text` object, nullable, required — Human-readable field variants. Will not be null when query param `with_text` is `true`.
              - …
            - `value` object, nullable, required — USD values for the corresponding amounts above. Will not be null when query param `with_value` is `true`.
              - …
        - `debts` UserDebtAssetPool[], required — Account debt allocations
          - `asset_info` AssetInfo, required — Asset identifiers with associated metadata
            - `asset` AssetSpec, required — Provides a unique identifier for an asset for use throughout the Neptune API. IDs are unique across asset domains (contract tokens, native denoms, etc)
              - …
            - `metadata` AssetMetadata, required — Additional metadata for assets
              - …
            - `classification` union, required — The asset's classification metadata. Assets are classfied to provide context on their usage throughout the Neptune API (e.g. regular assets, neptune receipt tokens, LSTs, etc.) Each asset belongs to only a single classification type. This object contains metadata pertaining to the given classification. While some fields may be common among the distinct classifcations, each classification is distinct and subject to independent change.
              - …
          - `principal` string, required — Initial amount borrowed (of debts which have not yet been repaid)
          - `interest` string, required — Sum of accrued interest for open debt position
          - `debt` string, required — Sum open debt amount (this is simply the principal + interest)
          - `extra` object, required
            - `text` object, nullable, required — Human-readable field variants. Will not be null when query param `with_text` is `true`.
              - …
            - `value` object, nullable, required — USD values for the corresponding amounts above. Will not be null when query param `with_value` is `true`.
              - …
        - `health` UserAccountHealth, required
          - `base` string, required — Account health value, before any added health boosts
          - `boost` string, required — Account health boost to be applied
          - `result` string, required — Account health, with boost
          - `extra` object, required
            - `text` object, nullable, required — Human-readable field variants. Will not be null when query param `with_text` is `true`.
              - …
      - `totals` UserBorrowMarketSumPool, required
        - `collaterals` UserCollateralAssetPool[], required — Account collateral allocations
          - `asset_info` AssetInfo, required — Asset identifiers with associated metadata
            - `asset` AssetSpec, required — Provides a unique identifier for an asset for use throughout the Neptune API. IDs are unique across asset domains (contract tokens, native denoms, etc)
              - …
            - `metadata` AssetMetadata, required — Additional metadata for assets
              - …
            - `classification` union, required — The asset's classification metadata. Assets are classfied to provide context on their usage throughout the Neptune API (e.g. regular assets, neptune receipt tokens, LSTs, etc.) Each asset belongs to only a single classification type. This object contains metadata pertaining to the given classification. While some fields may be common among the distinct classifcations, each classification is distinct and subject to independent change.
              - …
          - `amount` string, required — Amount of this asset which is actively collateralized
          - `extra` object, required
            - `text` object, nullable, required — Human-readable field variants. Will not be null when query param `with_text` is `true`.
              - …
            - `value` object, nullable, required — USD values for the corresponding amounts above. Will not be null when query param `with_value` is `true`.
              - …
        - `debts` UserDebtAssetPool[], required — Account debt allocations
          - `asset_info` AssetInfo, required — Asset identifiers with associated metadata
            - `asset` AssetSpec, required — Provides a unique identifier for an asset for use throughout the Neptune API. IDs are unique across asset domains (contract tokens, native denoms, etc)
              - …
            - `metadata` AssetMetadata, required — Additional metadata for assets
              - …
            - `classification` union, required — The asset's classification metadata. Assets are classfied to provide context on their usage throughout the Neptune API (e.g. regular assets, neptune receipt tokens, LSTs, etc.) Each asset belongs to only a single classification type. This object contains metadata pertaining to the given classification. While some fields may be common among the distinct classifcations, each classification is distinct and subject to independent change.
              - …
          - `principal` string, required — Initial amount borrowed (of debts which have not yet been repaid)
          - `interest` string, required — Sum of accrued interest for open debt position
          - `debt` string, required — Sum open debt amount (this is simply the principal + interest)
          - `extra` object, required
            - `text` object, nullable, required — Human-readable field variants. Will not be null when query param `with_text` is `true`.
              - …
            - `value` object, nullable, required — USD values for the corresponding amounts above. Will not be null when query param `with_value` is `true`.
              - …
    - `lend` UserLendMarket, required
      - `asset_pools` UserDebtAssetPool[], required — User lending allocations
        - `asset_info` AssetInfo, required — Asset identifiers with associated metadata
          - `asset` AssetSpec, required — Provides a unique identifier for an asset for use throughout the Neptune API. IDs are unique across asset domains (contract tokens, native denoms, etc)
            - `id` string, required
            - `group` union, required
              - …
            - `group_key` string, required
          - `metadata` AssetMetadata, required — Additional metadata for assets
            - `name` string, required — Full name of the asset
            - `symbol` string, required — Symbol of the asset, e.g.: `NEPT` `INJ`
            - `symbol_denom` string, required — Denom symbol for the asset (e.g. `inj` for `INJ`, `sat` for `BTC`)
            - `decimals_denom` integer, required — Denom exponent, or num. of decimal places that shift between denom/standard amounts (e.g. `18` for `INJ`)
            - `decimals_display` integer, required — Number of decimals used when displaying amounts of this asset (this is subjective and used for generating text representations)
          - `classification` union, required — The asset's classification metadata. Assets are classfied to provide context on their usage throughout the Neptune API (e.g. regular assets, neptune receipt tokens, LSTs, etc.) Each asset belongs to only a single classification type. This object contains metadata pertaining to the given classification. While some fields may be common among the distinct classifcations, each classification is distinct and subject to independent change.
            - object
              - …
            - object
              - …
            - object
              - …
        - `principal` string, required — Initial amount borrowed (of debts which have not yet been repaid)
        - `interest` string, required — Sum of accrued interest for open debt position
        - `debt` string, required — Sum open debt amount (this is simply the principal + interest)
        - `extra` object, required
          - `text` object, nullable, required — Human-readable field variants. Will not be null when query param `with_text` is `true`.
            - `principal` string, required
            - `interest` string, required
            - `debt` string, required
          - `value` object, nullable, required — USD values for the corresponding amounts above. Will not be null when query param `with_value` is `true`.
            - `interest` string, required
            - `debt` string, required
            - `principal` string, required
            - `extra` object, required
              - …
  - `error` unknown, required
  - `status` integer, required — HTTP status. Successful responses are guaranteed to be < `400`. Conversely, error responses are guaranteed to be >= `400`.
  - `status_text` string, required — HTTP status text

## Other responses

- `500` — Server error response

## Changes

- **2026-03-29** `65d147ca4389` — 3 breaking, 5 info
  - added the pattern `^inj(val(oper|cons))?[1][ac-hj-np-z02-9]{38}$` to the `path` request parameter `address`
  - the response property `error` became nullable for the status `200`
  - the `data` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - added the non-success response with the status `500`
  - …4 more
- …earlier changes not shown

[Full history](https://skmtc.dev/cryptechdev/apis/neptune-api-v2/changes/api/v1/users/:address/markets/get.md)

---

[API](https://skmtc.dev/cryptechdev/apis/neptune-api-v2.md) · [All operations](https://skmtc.dev/cryptechdev/apis/neptune-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cryptechdev/neptune-api-v2/revisions/65d147ca4389/schema)
