---
title: "Transações (aportes/resgates) de uma conta de investimento"
method: GET
path: "/api/v1/investments/transactions"
tags: ["Investimentos"]
---

# Transações (aportes/resgates) de uma conta de investimento

`GET /api/v1/investments/transactions`

## Request

- Base URL: `https://snabber.com.br`
- URL: `https://snabber.com.br/api/v1/investments/transactions`
- Auth: HTTP bearer

Retorna os aportes e resgates (`investment_movements`) de uma conta de investimento do workspace vinculado à chave de API, filtrado por período. A conta precisa pertencer a esse workspace.

## Query parameters

- `workspace_id` integer
- `account_id` integer, required
- `from` string, date
- `to` string, date

## Response `200`

Lista de transações de investimento

- InvestmentTransactionList
  - `data` InvestmentTransaction[]
    - `id` integer
    - `date` string, date
    - `type` 'APPLICATION' | 'WITHDRAWAL': APPLICATION = aporte, WITHDRAWAL = resgate
    - `amount` number: Sempre positivo; o sinal vem de `type`
    - `quantity` number, nullable: Cotas/ações/títulos movimentados, quando informado
    - `unit_value` number, nullable: Preço unitário na data, quando informado
    - `currency_code` string
    - `source` 'pluggy' | 'manual'
    - `raw_type` string, nullable: Valor cru vindo da Pluggy, para debug
    - `position_id` integer, nullable: Posição associada, quando aplicável
    - `ignored` boolean: true se marcada manualmente como duplicata e excluída dos cálculos de rentabilidade
  - `meta` object
    - `workspace_id` integer
    - `account_id` integer

## Other responses

- `400`: Parâmetro inválido
- `401`: Chave de API ausente, inválida, revogada ou expirada
- `403`: Plano do usuário não tem acesso à API (downgrade para free)
- `404`: Conta não encontrada neste workspace
- `429`: Limite de requisições excedido

---

[API](https://skmtc.dev/snabber/apis/snabber-api.md) · [All operations](https://skmtc.dev/snabber/apis/snabber-api/llms.txt) · [OpenAPI document](https://skmtc.dev/snabber/apis/snabber-api/revisions/bf5841cbd8ce?raw)
