# 更新代币市场上的价格

为了确保每个已铸造的代币都是过度抵押的，dRamp 需要有一个与其部署的区块链的本地币种之间的最新汇率。

假设 dRamp 已部署在 Fantom 区块链上，并且我们想铸造 X 金额的欧元。dRamp 要求每 24 小时至少更新一次 FTM 对 EUR 的汇率。

我们将知道我们的代币的汇率需要更新，如果 **FTM 对 EUR 的价格** 的值为 null；否则，我们就不需要更新汇率。

要更新我们的汇率，我们进入 dRamp 的面板，并选择 EUR 代币，如下图所示。

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

然后，在我们的 dRamp 的控制面板菜单中，我们选择 **从 API 获取价格** 选项以获取 FTM 对 EUR 的价格

<div><figure><img src="/files/wAPlwGphi7Ij4TwDRJyT" alt=""><figcaption></figcaption></figure> <figure><img src="/files/qXbnPIo1d2WSgOwbPvCJ" alt=""><figcaption></figcaption></figure></div>

如果您没有得到汇率的数字，请反复刷新直到获得类似上图的数字。一旦获得汇率，点击 **设置价格** 按钮，然后点击 **继续** 按钮并验证交易。

您应该在 dRamp 的参数部分看到新的汇率已更新，如下图所示：

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

您还可以通过运行 **从 API 获取所有价格** 来获取多个价格，尽管这可能更加棘手，因为它可能会返回多个 NaN，并且您可能需要多次刷新才能获得所有数字。


---

# 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.payswap.org/zhong-guo-ren/products/dramps/update-prices-on-a-token-market.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.
