---
title: "private/get_collaterals"
method: POST
path: "/private/get_collaterals"
tags: ["Subaccounts"]
---

# private/get_collaterals

`POST /private/get_collaterals`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/get_collaterals`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Returns the subaccount ID and the list of its collateral balances, including each asset's amount and current value valued against live feed data. A lighter alternative to get_subaccount when only collateral holdings are needed.

## Request body

- GetCollateralsRequest
  - `subaccount_id` integer, required

## Response `200`

Success

- PrivateGetCollateralsResponse
  - `collaterals` Collateral[], required
    - `amount` string, required
    - `amount_step` string, required
    - `asset_name` string, required
    - `asset_type` string, required
    - `average_price` string, required
    - `average_price_excl_fees` string, required
    - `creation_timestamp` integer, required
    - `cumulative_interest` string, required
    - `currency` string, required
    - `delta` string, required
    - `delta_currency` string, required
    - `initial_margin` string, required
    - `maintenance_margin` string, required
    - `mark_price` string, required
    - `mark_value` string, required
    - `open_orders_margin` string, required
    - `pending_interest` string, required
    - `realized_pnl` string, required
    - `realized_pnl_excl_fees` string, required
    - `total_fees` string, required
    - `unrealized_pnl` string, required
    - `unrealized_pnl_excl_fees` string, required
  - `subaccount_id` integer, required

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-11-24** `5d88da6a9f59`: 2 info
  - api tag `Subaccounts` added
  - api tag `Other` removed
- **2026-11-18** `ba740b5aec95`: 2 info
  - api tag `Other` added
  - api tag `Subaccounts` removed
- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/get_collaterals/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
