# 状态流转

### 1.兑换时序图

<figure><img src="/files/Nf36TdLmatvP2Sdgk84S" alt=""><figcaption></figcaption></figure>

1. 用户: 查看可兑换币种
2. api服务: 查看支持兑换的币种列表；返回查询结果
3. 用户：看到支持兑换的币种列表
4. 用户：选择兑换的币种，查看对应汇率
5. api服务: 查询对应币种汇率，例:BTC/USDT，返回汇率查询结果
6. 用户：看到对应币种汇率
7. 用户：输入/选择相关信息进行下单，例:数量目标币接收地址
8. 用户：确认输入/选择的相关信息
9. 用户：输入密码
10. api服务: 调用创建订单接口
11. api服务: 返回订单创建结果（若订单收币地址24h内累计兑换额度超过阈值，触发KYC则返回信息）
12. api服务: 返回订单创建结果
13. 用户：转账到创建订单接口返回的临时地址上
14. 用户：查询订单状态
15. api服务：实时刷新订单状态、返回订单状态
16. api服务：检测到用户存币后开始兑换
17. api服务：完成兑换，兑换成功给用户发送目标币，兑换失败给用户遍回原币
18. api服务：触发KYC额度，将导致退币或完成KYC继续兑换
19. 用户：查询订单状态
20. api服务：检测存币并执行兑换
21. api服务：完成兑换并发币

### 2.订单状态流转状态图

&#x20;   **(1)订单详细状态流转**

&#x20;  &#x20;

<figure><img src="/files/LDVQ2wyEajaHhLVsdotO" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.cn.omnibridge.pro/architecture/flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
