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

# 損益

> pnl ツール：1日、1週間、1か月、1年、または全期間で純資産がどう動いたか、その要因。

`pnl` · 読み取り · `GET /v1/pnl`

ある期間に純資産または損益がどう動いたか、その要因です。

## 質問の例

* 「今週のポートフォリオはどうだった？」
* 「今日の変動の要因は？」
* 「含み損益はいくら？」

## 入力

| 入力 | 型 | デフォルト | 内容 |
| - | - | - | - |
| `range` | `1D`、`1W`、`1M`、`1Y`、`All` のいずれか | `1D` | 期間 |

## 返す内容

| フィールド | 内容 |
| - | - |
| `start_usd`, `end_usd` | 期間の開始時と終了時の純資産 |
| `change_usd`, `change_pct` | ドルとパーセントでの変動 |
| `high_usd`, `low_usd` | 最高値と最安値 |
| `points` | 期間全体で最大13個のデータポイント |
| `drivers` | `1D`、`1W`、`1M` の場合：変動の要因となったコインとアカウント、無期限先物の実現損益、ファンディング、手数料 |
| `unrealised` | Burokku が取得原価を把握している保有資産の含み損益と、それが保有資産のどれだけをカバーしているか。取得原価がわからない場合は `null` |

`note`、`read_at`、`refreshing`、`currency` も返します。

> [!NOTE]
>
> これらの数値は税務用ではありません。課税年度の損益は Burokku の税ページで計算できます。

## 読み取りか書き込みか

読み取りのみです。アカウントの内容は何も変更しません。

## REST API で使う

同じ操作は `GET /v1/pnl` で、`range` はクエリパラメーターとして渡します。[API リファレンス](https://docs.burokku.app/ja/api-reference/introduction.md)と [MCP サーバー](https://docs.burokku.app/ja/developers/mcp.md#pnl)を参照してください。


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