DIA
Request a custom oracle​
DIA offers customizable oracles tailored to each dapp's needs. Each oracle can be customized in several ways, including data sources, data cleansing filters, pricing and computational methodologies, update mechanisms and more. This ensures that the data and oracle remain robust and resilient to the market conditions and provide a global market price as well as specific individual or cross-chain market prices.
By collecting billions of raw trades directly from over 90 sources, including CEXs, DEXs, and NFT marketplaces, DIA enables full transparency, customization, and control throughout the entire value stack. DIA's data and oracle suite comprise price feeds for 20,000+ assets including cryptocurrencies, NFT collections, and liquid-staked tokens, as well as random number generation and other data feed types.
Token price feeds​
DIA token price feeds provide smart contracts with real-time price information for 3,000+ cryptocurrencies, sourced transparently from 90+ trusted, high-volume DEXs and CEXs.
Access DIA oracles​
Here is an example of how to access a price value on DIA oracles:
- Access your custom oracle smart contract on Linea.
- Use the "Read" section on the explorer to execute the
getValue(pair_name)
call, wherepair_name
is the full pair name such asBTC/USD
. - The response of the call contains two values:
- The current asset price in USD with a fix-comma notation of 8 decimals.
- The UNIX timestamp of the last oracle update.
Access DIA's oracle integration samples in Solidity and Vyper languages.
Linea demo price oracles​
We have deployed the following demo oracles for the Linea community. They provide a limited selection of cryptocurrency price feeds with predefined configuration settings.
DIA demo oracles are not intended for use in production environments. For a dedicated, production-ready oracle with custom price feeds and configuration settings, request a custom oracle.
Demo oracle smart contracts​
Network | Contract address |
---|---|
Linea Mainnet | 0xbb5a4708302ee9d959abc417ca1280abb106ba6a |
Included price feeds​
Supported token API endpoints​
DIA also supports API and GraphQL endpoints to return cryptocurrency price data.
See all API endpoints in our documentation.
🎨 NFT floor price feeds
DIA NFT floor price feeds provide smart contracts with real-time price information of 18,000+ NFT collections, sourced on-chain with 100% transparency from multiple, cross-chain NFT marketplaces.
Supported NFT API endpoints​
DIA also supports API endpoints to return cryptocurrency price data. Developers can directly access the example endpoints listed below or visit the DIA Documentation to see all API endpoints.