---
title: "GET /addresses/{address}/parentSubaccountNumber/{parentSubaccountNumber}"
method: GET
path: "/addresses/{address}/parentSubaccountNumber/{parentSubaccountNumber}"
---

# GET /addresses/{address}/parentSubaccountNumber/{parentSubaccountNumber}

`GET /addresses/{address}/parentSubaccountNumber/{parentSubaccountNumber}`

## Path parameters

- `address` string, required
- `parentSubaccountNumber` number, double, required

## Response `200`

Ok

- ParentSubaccountResponse
  - `address` string, required
  - `parentSubaccountNumber` integer, required
  - `equity` string, required
  - `freeCollateral` string, required
  - `childSubaccounts` SubaccountResponseObject[], required
    - `address` string, required
    - `subaccountNumber` integer, required
    - `equity` string, required
    - `freeCollateral` string, required
    - `openPerpetualPositions` PerpetualPositionsMap, required
    - `assetPositions` AssetPositionsMap, required
    - `marginEnabled` boolean, required
    - `updatedAtHeight` string, required
    - `latestProcessedBlockHeight` string, required

## Changes

- **2024-06-14** `4e40c15fe6bd` — 1 info
  - added the required property `childSubaccounts/items/latestProcessedBlockHeight` to the response with the `200` status
- **2024-05-14** `90fd32395633` — 5 breaking
  - the `childSubaccounts/items/assetPositions/additionalProperties/subaccountNumber` response's property type/format changed from `integer`/`int32` to `number`/`double` for status `200`
  - the `childSubaccounts/items/openPerpetualPositions/additionalProperties/subaccountNumber` response's property type/format changed from `integer`/`int32` to `number`/`double` for status `200`
  - the `childSubaccounts/items/subaccountNumber` response's property type/format changed from `integer`/`int32` to `number`/`double` for status `200`
  - the `parentSubaccountNumber` response's property type/format changed from `integer`/`int32` to `number`/`double` for status `200`
  - …1 more

[Change history](https://skmtc.dev/dydxprotocol/apis/indexer-api/changes/addresses/:address/parentSubaccountNumber/:parentSubaccountNumber/get.md)

---

[API](https://skmtc.dev/dydxprotocol/apis/indexer-api.md) · [All operations](https://skmtc.dev/dydxprotocol/apis/indexer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dydxprotocol/indexer-api/revisions/5005547cef75/schema)
