> For the complete documentation index, see [llms.txt](https://docs.darkbet.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.darkbet.fun/gong-zuo-yuan-li/shi-chang-jie-suan.md).

# 市场结算

Darkbet 使用 **多层验证系统** 来安全且透明地解决预测市场。\
对于基于加密的市场，结算由 **链上数据**, **交易所价格来源**，和 **AI 辅助验证** 来确保准确性、速度和可靠性。

#### 第 1 层：价格验证

第一层验证来自多个交易所的实时加密货币价格数据。\
这包括：

* 来自领先交易所和预言机的聚合价格来源
* 链上交易与区块数据的交叉核对
* 对简单的基于价格的市场的即时结算

这确保诸如“到期时 BTC > $70,000”之类的结果可以使用实时、受信任的数据自动且可验证地结算。

### 第 2 层：数据聚合

接下来，DarkBet 的数据引擎使用 **加密专用 API**收集额外的市场信息。\
这包括：

* 价格来源和交易量数据
* 历史 K 线和波动率指数
* 区块链级别信号，例如交易数量和区块确认数

这些输入增强了 AI 分析的上下文，并有助于验证在价格变动不明确或存在争议时的边缘情况。

### 第 3 层：AI 分析

在最后一层，DarkBet 的 AI 代理评估所有收集到的数据以确定官方结果。\
AI 执行：

* 对所有可获得的市场证据进行全面分析
* 对独立的加密数据源进行交叉核验
* 当多个来源出现差异时进行共识构建
* 生成详细的推理日志以提高透明度

结果是一个自治、可验证且可解释的决策，确保每个结算都以数据而非观点为依据。

### 加密数据源与 API

我们的 AI 系统集成了 25+ 个加密 API 和数据源，以确保结算的准确性和全面性。

| 金融数据                                                                                   | 体育数据                                                                                             | 新闻与事件                                                                |
| -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- |
| <ul><li>CoinGecko API</li><li>Binance API</li><li>雅虎财经</li><li>Alpha Vantage</li></ul> | <ul><li>ESPN API</li><li>The Sports DB</li><li>Football Data API</li><li>NBA Stats API</li></ul> | <ul><li>NewsAPI</li><li>路透社 API</li><li>美联社</li><li>政府 API</li></ul> |

#### 结算时间表

1. **市场到期** — 预测市场到达到期时间并停止接受新投注。
2. **数据收集（1–2 分钟）** — 系统从配置的 API 和链上来源获取所有相关数据。
3. **AI 分析（2–3 分钟）** — AI 处理并交叉核验数据以得出最终结果。
4. **结算与支付** — 结果记录在链上，符合条件的参与者可以立即领取其奖金。

> 所有加密结算决策均以详细推理记录在链上。用户可以验证所使用的加密数据来源和 AI 的决策过程以确保完全透明。


---

# 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.darkbet.fun/gong-zuo-yuan-li/shi-chang-jie-suan.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.
