---
title: "List Gains Cost Basis"
method: GET
path: "/tax/gains/costbasis/{subaccountId}"
tags: ["Tax"]
---

# List Gains Cost Basis

`GET /tax/gains/costbasis/{subaccountId}`

Permissions required: **Subaccount**



List subaccount's breakdown of combined cost basis, proceeds and gains/losses

## Path parameters

- `subaccountId` string, required

## Query parameters

- `startDateTime` string, date-time, required
- `endDateTime` string, date-time, required

## Response `200`

Successfully returned the subaccount's tax gains cost bases

- TaxGainsCostBasisResponse
  - `data` TaxGainsCostBase[], required
    - `acquisitionTxId` string — The unique identifier of the transaction where the asset was acquired in the tax system.
    - `cost` TaxGainsAmount — Summary of tax amount
      - `assetType` string, required — A string representing the asset type
      - `quantity` string, required — Gain or loss quantity
    - `costBasisDate` string, date-time, nullable — ISO-8601 format date time of the Cost Basis date
    - `dispositionTxId` string — The unique identifier of the transaction where the asset was sold in the tax system.
    - `externalAcquisitionTxId` string — The unique identifier of the transaction where the asset was acquired in the external system.
    - `externalDispositionTxId` string — The unique identifier of the transaction where the asset was sold in the external system.
    - `gain` TaxGainsAmount — Summary of tax amount
      - `assetType` string, required — A string representing the asset type
      - `quantity` string, required — Gain or loss quantity
    - `gainType` 'LONG_TERM' | 'SHORT_TERM', required — A string representing the gain type
    - `proceeds` TaxGainsAmount, required — Summary of tax amount
      - `assetType` string, required — A string representing the asset type
      - `quantity` string, required — Gain or loss quantity
    - `saleDate` string, date-time, required — ISO-8601 format date time of the sale date
    - `sold` TaxGainsAmount, required — Summary of tax amount
      - `assetType` string, required — A string representing the asset type
      - `quantity` string, required — Gain or loss quantity
    - `taxYear` string, required — The tax year of the sale

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden
- `429` — Too Many Requests
- `500` — Internal Server Error
- `501` — Not Implemented Error

---

[API](https://skmtc.net/anchorage/apis/anchorage-digital-api-reference.md) · [All operations](https://skmtc.net/anchorage/apis/anchorage-digital-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anchorage/anchorage-digital-api-reference/revisions/166864b1ec6d/schema)
