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

# List Gains

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

## Request

- Base URL: `https://api.anchorage-staging.com/v2`
- URL: `https://api.anchorage-staging.com/v2/tax/gains/summary/{subaccountId}`
- Auth: API key in header `Api-Access-Key`
- TypeScript: <https://skmtc.dev/anchorage/apis/anchorage-digital-api-reference/docs/tax/gains/summary/:subaccountId/get.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/anchorage/apis/anchorage-digital-api-reference.md) - [All operations](https://skmtc.dev/anchorage/apis/anchorage-digital-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/anchorage/apis/anchorage-digital-api-reference/revisions/166864b1ec6d?raw)
