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

# List Gains

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

Permissions required: **Subaccount**



List subaccount's gains for a period breakdown to short term, long term and total

## Path parameters

- `subaccountId` string, required

## Query parameters

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

## Response `200`

Successfully returned the gains

- TaxGainsResponse
  - `data` TaxGains, required — Breakdown of tax gains into short term, long term and total
    - `longTerm` TaxGainsAmount — Summary of tax amount
      - `assetType` string, required — A string representing the asset type
      - `quantity` string, required — Gain or loss quantity
    - `shortTerm` TaxGainsAmount — Summary of tax amount
      - `assetType` string, required — A string representing the asset type
      - `quantity` string, required — Gain or loss quantity
    - `total` TaxGainsAmount — Summary of tax amount
      - `assetType` string, required — A string representing the asset type
      - `quantity` string, required — Gain or loss quantity

## 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/versions/166864b1ec6d/schema)
