# Brazil Investment Funds Performance (CVM) - return, risk, % CDI (`kman-br/cvm-fundos-desempenho`) Actor

Performance analytics for Brazilian investment funds from CVM's official daily reports: return, annualised return, volatility, max drawdown, Sharpe, % of CDI, net inflows, AUM and investors, monthly returns. Look up a list of CNPJs or rank all funds by class.

- **URL**: https://apify.com/kman-br/cvm-fundos-desempenho.md
- **Developed by:** [Kman](https://apify.com/kman-br) (community)
- **Categories:** Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Brazil Investment Funds Performance & Ranking (CVM)

**EN** · [PT-BR abaixo](#pt-br)

CVM publishes every Brazilian fund's daily quota, AUM, inflows, outflows and investor count as raw monthly CSVs. This Actor turns them into **ready-made performance analytics**, so you do not have to download, join and compute anything.

### Per fund (class / subclass)

- Return in the window, annualised return (252-day basis), annualised volatility, **max drawdown**
- **CDI** for the same dates (BCB series 12), **% of CDI**, **Sharpe vs CDI**
- Inflows, outflows and **net inflows** in the window; AUM at start and end; investors at the end
- Month-by-month returns
- Registry data: class name, CVM classification, ANBIMA class, target investor, open/closed, exclusive flag, administrator and manager (companies only)

### Two modes

- **Funds**: pass up to 500 CNPJs (fund or class) and get the metrics for each.
- **Ranking**: leave CNPJs empty and rank the whole market by return, Sharpe, net inflows, AUM, lowest volatility or lowest drawdown, filtered by CVM classification (Renda Fixa, Multimercado, Ações…), ANBIMA class, name, minimum AUM and minimum investors. Exclusive funds and funds without full-window history are left out.

### Input example

```json
{ "meses": 12, "classificacoes": ["Multimercado"], "ordenarPor": "retorno", "plMinimo": 10000000, "cotistasMinimo": 50, "maxItems": 50 }
```

### Output example (live, 12/11/2026)

```json
{ "posicao": 2, "total_ranking": 1326, "cnpj": "57070106000189", "nome": "QUARTER PRECATÓRIOS FUNDO DE INVESTIMENTO EM COTAS …", "classificacao": "Multimercado", "classe_anbima": "Multimercados Livre", "data_inicio": "2025-12-01", "data_fim": "2026-11-09", "retorno_pct": 18.11, "cdi_periodo_pct": 13.28, "pct_do_cdi": 136.33, "volatilidade_anual_pct": 0.05, "max_drawdown_pct": 0, "captacao_liquida_periodo": 37931870.87, "patrimonio_fim": 127372980.15, "cotistas_fim": 844 }
```

### Pricing (pay per event)

- US$ 0.04 per run (each run downloads up to 24 monthly files plus the registry)
- US$ 0.005 per fund analysed (50 funds = US$ 0.25)

### Privacy

Only institutional data. When a fund manager is an individual, the name and CPF are omitted; the responsible director is never output.

### Sources and licence

CVM Dados Abertos – Informe Diário de Fundos and Registro de Fundos/Classes (https://dados.cvm.gov.br/dataset/fi-doc-inf_diario), **ODbL**. CDI: Banco Central do Brasil SGS series 12, **ODbL**. Not investment advice; past performance does not guarantee future results.

***

### PT-BR

Desempenho de fundos de investimento a partir dos dados oficiais da CVM: retorno, retorno anualizado, volatilidade, **drawdown máximo**, **% do CDI**, **Sharpe**, captação líquida, patrimônio, cotistas e retorno mês a mês.

- **Modo fundos**: até 500 CNPJs.
- **Modo ranking**: o mercado todo por classe CVM/ANBIMA, com patrimônio e cotistas mínimos, sem exclusivos.
- Gestor pessoa física e diretor responsável nunca aparecem (LGPD).
- Preço: US$ 0,04 por execução + US$ 0,005 por fundo.
- Fontes: CVM e BCB, licença ODbL. Não é recomendação de investimento.

# Actor input Schema

## `cnpjs` (type: `array`):

Até 500. Vazio = modo ranking com todos os fundos.

## `meses` (type: `integer`):

Meses de informe diário, terminando no mês final.

## `mesFinal` (type: `string`):

AAAA-MM. Padrão: mês atual.

## `classificacoes` (type: `array`):

Ex.: Renda Fixa, Multimercado, Ações, Cambial.

## `classesAnbima` (type: `array`):

Ex.: Livre, Duração Baixa, Previdência.

## `nomeContem` (type: `array`):

Filtro por parte do nome da classe ou do fundo.

## `plMinimo` (type: `integer`):

Padrão R$ 10 milhões no ranking.

## `cotistasMinimo` (type: `integer`):

Padrão 50 no ranking.

## `incluirExclusivos` (type: `boolean`):

No ranking, exclusivos ficam fora por padrão.

## `ordenarPor` (type: `string`):

Ordem do ranking.

## `incluirCdi` (type: `boolean`):

Baixa a série 12 do BCB (CDI) para % do CDI e Sharpe.

## `serieMensal` (type: `boolean`):

Inclui a lista retornos_mensais.

## `maxItems` (type: `integer`):

Fundos cobrados.

## Actor input object example

```json
{
  "cnpjs": [],
  "meses": 12,
  "plMinimo": 10000000,
  "cotistasMinimo": 50,
  "incluirExclusivos": false,
  "ordenarPor": "retorno",
  "incluirCdi": true,
  "serieMensal": true,
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

RUN_SUMMARY: status, months read, series, candidates, charged events.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "cnpjs": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("kman-br/cvm-fundos-desempenho").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "cnpjs": [] }

# Run the Actor and wait for it to finish
run = client.actor("kman-br/cvm-fundos-desempenho").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "cnpjs": []
}' |
apify call kman-br/cvm-fundos-desempenho --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kman-br/cvm-fundos-desempenho"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Fabch7Fgaa0cSnqdl/builds/DVVnii7CdrLG8bo3p/openapi.json
