Price oracle

A price oracle is a mechanism that delivers off-chain or aggregated price data on-chain so that smart contracts can act on asset prices.

Smart contracts cannot call external APIs, so lending, derivatives and stablecoin protocols rely on oracles to learn what an asset is worth. Oracles differ in how they source and secure prices, often using a TWAP over pool data or aggregating multiple venues to resist manipulation. A single manipulable feed is a common attack surface for DeFi exploits. Our spot and OHLCV data can serve as inputs when building or validating an oracle, offering an independent reference against on-chain pool prices.

相关术语

另见

把概念变成一次 API 调用

这里的每个术语都对应一个今天即可调用的原语——充值额度即可上线。

获取 API 密钥