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

# ローソク足 (OHLC)

> トークン / ペア / プールの多インターバル OHLC — 全取引ストリームから事前集計。

**Candles (OHLC)** データプロダクトは、本来なら [Trades](/jp/docs/data-products/trades) から自分で集計すべきバー (Open / High / Low / Close / Volume) の事前集計版です。複数インターバル、トークン / ペア / プール粒度で提供されます。

## フィールド

| フィールド                                    | 説明                     |
| :--------------------------------------- | :--------------------- |
| `open`, `high`, `low`, `close`           | USD または quote 建て (設定可) |
| `volumeUsd`, `volumeBase`, `volumeQuote` | 方向別出来高                 |
| `trades`                                 | バー内の取引数                |
| `buyers`, `sellers`                      | ユニークアドレス数              |
| `timestamp`                              | バー開始時刻 (UTC)           |

## インターバル

`1s` / `1m` / `5m` / `15m` / `1h` / `4h` / `1d` / `1w`

## アクセス

<CardGroup cols={2}>
  <Card title="REST" icon="database" href="/jp/api-reference/endpoint/data/token/v2/token-chain-tokenaddress-candles-get">
    `tokens/{address}/candles`, `pools/{address}/candles`。
  </Card>

  <Card title="WebSocket" icon="bolt" href="/jp/api-reference/endpoint/websocket/api">
    `dex-candle:{chain}_{tokenAddress}_{resolution}`（USD）と `dex-candle-in-native:...`（ネイティブ通貨建て）。SDK: `client.stream.subscribeTokenCandles({ chain, tokenAddress, resolution, callback })`。
  </Card>

  <Card title="GraphQL" icon="diagram-project" href="/jp/graphql/getting-started/overview">
    メタデータと同時取得。
  </Card>

  <Card title="SDK" icon="box" href="/jp/sdks/overview">
    `client.token.getCandles(chain, tokenAddress, { resolution })` で型付き配列を取得。
  </Card>
</CardGroup>

## 次へ

<CardGroup cols={2}>
  <Card title="Trades" icon="right-left" href="/jp/docs/data-products/trades">
    ティック粒度が必要な場合。
  </Card>

  <Card title="DEX Pools" icon="droplet" href="/jp/docs/data-products/dex-pools">
    プール単位の OHLC。
  </Card>
</CardGroup>
