DataBolsa docs
Referência da APIExtensõesWalletCarteiras

Raio-X de custos recorrentes da carteira

Estima custos anuais observáveis de posições abertas: administração de fundos, custódia do Tesouro e diferença de renda fixa bancária tributável para 100% do CDI. `items` traz destinatário, referência e excesso; `by_recipient` e `totals` agregam. Custos sem base pública ficam em `not_estimated`, sem valor inferido. `flags` descreve fatos, não recomendações.

GET
/v1/portfolios/{id}/costs
AuthorizationBearer <token>

In: header

Path Parameters

idstring

Id da carteira (de listPortfolios).

Response Body

curl -X GET "https://api.databolsa.com/v1/portfolios/string/costs"
{
  "items": [
    {
      "symbol": "string",
      "class": "string",
      "name": "string",
      "value_brl": 0,
      "cost_kind": "fund_admin_fee",
      "annual_cost_pct": 0,
      "annual_cost_brl": 0,
      "recipient": "string",
      "benchmark": {
        "label": "string",
        "value_pct": 0,
        "peers": 0
      },
      "excess_cost_brl": 0,
      "note": "string"
    }
  ],
  "not_estimated": [
    {
      "class": "string",
      "reason": "string",
      "positions": 0,
      "symbols": [
        "string"
      ]
    }
  ],
  "by_recipient": [
    {
      "recipient": "string",
      "annual_cost_brl": 0
    }
  ],
  "totals": {
    "annual_cost_brl": 0,
    "above_reference_brl": 0,
    "pct_of_patrimonio": 0
  },
  "flags": [
    "string"
  ],
  "meta": {
    "patrimonio_brl": 0,
    "reference": "string",
    "positions_considered": 0,
    "unpriced_ignored": 0,
    "cdi_12m_pct": 0,
    "caveat": "string"
  }
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "details": {
    "property1": null,
    "property2": null
  }
}