> For the complete documentation index, see [llms.txt](https://docs.chiliz.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chiliz.com/jp/kaihatsu/joukyu/on-chain-kakaku-feed.md).

# オンチェーン price feed を取得する

Chiliz Chain は、スマートコントラクトに対して信頼性の高い改ざん耐性を持つアセット価格を直接提供する、機関グレードのオンチェーン price feed システムを提供しています。**Chainlink AggregatorV3Interface** を実装しており、Chainlink data feed と統合済みの dApp は最小限の変更で接続できます。

価格データは複数の主要な中央集権型取引所から収集され、VWAP（Volume Weighted Average Price）で集計され、外れ値がフィルタリングされた後、完全自動化された高頻度パイプラインによって許可されたシグナーがオンチェーンにプッシュします。

## 仕組み

Oracle システムは、検証済みの価格をオンチェーンコントラクトに継続的にプッシュする 3 段階のオフチェーンパイプラインとして構築されています。

```mermaid
flowchart LR
    subgraph pipeline["Off-chain Pipeline"]
        direction LR
        FETCHER --> AGGREGATOR --> SIGNER
    end
    SIGNER --> pricefeed["Chiliz Chain\nPriceFeed Contracts"]
```

**ステージ 1: Fetcher**\
WebSocket ストリーム（Binance、Bybit、Bitget、Mexc、OKX、BingX）および REST ポーリング（Binance、Bybit、Bitget、Gate、Coinex）を通じて中央集権型取引所からリアルタイムの市場データを取得し、サブグラフクエリ（FanX）も利用します。取得したすべての価格は内部キャッシュに保存され、Aggregator に提供されます。

**ステージ 2: Aggregator**\
VWAP 計算を適用して流動性の高い取引所により大きなウェイトを与え、外れ値をフィルタリングします。以下の 2 つのルールに基づいてオンチェーン更新を送信するかどうかを決定します。

* **Deviation threshold**: 集計価格が最後のオンチェーン値から設定されたパーセンテージ（例: 0.5%）を超えて変動した場合に更新が送信されます。
* **Heartbeat**: 価格が deviation threshold を超えて変動していない場合でも、最大時間間隔が経過すると強制的に更新されます。これにより feed が古くなることはありません。

**ステージ 3: Signer**\
Aggregator から検証済みの価格ジョブを受け取り、機関グレードの署名ソリューションである Fireblocks を通じてオンチェーンに送信します。Signer は Aggregator が価格の準備ができたと判断した場合にのみ動作します。

## コントラクトシステム

| コントラクト                  | 役割                                                                                       |
| ----------------------- | ---------------------------------------------------------------------------------------- |
| **PriceFeed**           | 取引ペアごとに 1 つのコントラクト。dApp が読み取るコントラクトです。Chainlink AggregatorV3Interface を実装しています。          |
| **OracleFactory**       | レジストリおよびマネージャー。ペアシンボル（例: `"PSG/USDT"`）から oracle アドレスへの正式なマッピングを保持します。                    |
| **OracleFactoryReader** | 読み取り専用の便利コントラクト。アクティブな oracle アドレスをすべて取得したり、複数のペアを解決したり、1 回の呼び出しでシステム全体のヘルス状態を確認したりできます。 |

Oracle コントラクトは [Halborn](https://www.halborn.com/audits/chiliz/oracle-contracts-40e905) による監査を受けています（2026 年 1 月）。

## コントラクトアドレス

Mainnet および Testnet のネットワークパラメーターは[RPC で接続する](/jp/kaihatsu/kihon/chiliz-chain-setsuzoku/rpc-setsuzoku.md)ページで確認できます。

{% tabs %}
{% tab title="Chiliz Chain Mainnet" %}

<table><thead><tr><th width="253">Contract</th><th>Address</th></tr></thead><tbody><tr><td>OracleFactory</td><td><code>Coming soon...</code></td></tr><tr><td>OracleFactoryReader</td><td><code>Coming soon...</code></td></tr></tbody></table>
{% endtab %}

{% tab title="Spicy Testnet" %}

<table><thead><tr><th width="253">Contract</th><th>Address</th></tr></thead><tbody><tr><td>OracleFactory</td><td><code>0x824A1C121DD4baeA7f074f829294Af7DD10D9723</code></td></tr><tr><td>OracleFactoryReader</td><td><code>0x8908cd1586e90b399Dbc160Be98396172ef2F378</code></td></tr></tbody></table>
{% endtab %}
{% endtabs %}

[Price Oracle Tracker](https://price-oracle-tracker.vercel.app/?network=mainnet) では、すべての利用可能なペアのライブ価格、decimals、heartbeat パラメーター、および個別のコントラクトアドレスを確認できます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.chiliz.com/jp/kaihatsu/joukyu/on-chain-kakaku-feed.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
