> ## Documentation Index
> Fetch the complete documentation index at: https://docs.arbitragem-crypto.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Resumo e exportação do journal

> GET /v1/journal/summary e GET /v1/journal/export.csv

## Resumo

`GET /v1/journal/summary?email=user@example.com&from=2026-09-01T00:00:00Z`

Consolida as operações **fechadas** cujo `closedAt` está em `[from, to)`:

| Campo | Significado |
| - | - |
| `netPnl`, `grossPnl` | Resultado acumulado no período |
| `winRate` | Operações com `netPnl > 0` ÷ fechadas × 100 |
| `feesPaid` | Soma de `trading + withdrawal` |
| `fundingReceived` | Soma do funding (negativo quando pago) |
| `openOperations` | Operações abertas agora, independente do período |
| `series` | Resultado diário (fuso America/Sao\_Paulo) e acumulado |
| `byRoute`, `byAsset`, `byStrategy`, `bySource` | Grupos ordenados pelo resultado líquido |

`strategy`, `asset` e `source` também filtram o resumo.

## Exportação CSV

`GET /v1/journal/export.csv?email=user@example.com&status=closed`

Aceita os mesmos filtros da listagem e devolve todas as operações encontradas
com `Content-Disposition: attachment`. As colunas são `id, status, strategy,
asset, buy_exchange, sell_exchange, quantity, short_quantity, entry_buy_price,
entry_sell_price, exit_buy_price, exit_sell_price, trading_fees,
withdrawal_fees, funding, fees_estimated, gross_pnl, net_pnl, net_pnl_pct,
opened_at, closed_at, source, external_id, notes`. As datas saem em RFC3339 no fuso de São Paulo, e
notas que começam com `=`, `+`, `-` ou `@` recebem um apóstrofo para não serem
interpretadas como fórmula.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.