Use Oracle Builder
Step-by-step guide on using the DIA Oracle Builder. Learn how to select price feeds, choose calculation methodologies, deploy on your desired network, and more.
Last updated
Step-by-step guide on using the DIA Oracle Builder. Learn how to select price feeds, choose calculation methodologies, deploy on your desired network, and more.
Last updated
This section provides a detailed guide on the deployment process of the product. The process includes selecting price feeds, determining the methodology for price calculation, choosing a network, determining update triggers, and finally deploying the oracle.
Search and add cryptocurrency price feeds to the oracle.
These feeds return values in USD.
Maximum limit: 10 price feeds per oracle.
Search using token symbol (e.g., ETH, BTC) or asset’s address.
Tokens appearing in multiple chains show the network in parenthesis next to the symbol.
Choose your desired methodology for price calculation:
Moving Average Price with Interquartile Filter (MAIR):.
Volume Weighted Average Price with Interquartile Filter (VWAPIR):.
Note: Both methodologies come with outlier filtering by default. Outlier filtering is most effective with a large number of trades..
Choose the data sources to compose your feed.
Opt for entire exchanges or, for more precision, select specific asset pairs within exchanges using their dropdown menus.
Recommendation: Favor assets with a broader source range and significant trade volumes.
Important Notices:
Be cautious of tokens with limited sources or low trade volumes.
Choose the desired network for oracle deployment. It's possible to deploy any price feed on any available network, irrespective of where the asset is traded. Available networks:
Ethereum Sepolia
Arbitrum Sepolia
Polygon Amoy
Upcoming: New networks will be added based on demand and integration availability.
Define how the oracle will push updated price information on-chain. Options:
Time-based: Updates pushed at a set time interval (seconds, minutes, hours). Max: 24 hours; minimum 120 seconds.
Time + deviation-based: As above, but also oracle updates if an asset’s price varies by a set percentage from the last reported value.
Deployment is a 3-step process:
The oracle smart contract is created individually, each having unique public and private keys.
Oracle's address is shown in the same window.
This step requires gas tokens.
Confirms the deploying user’s identity and their rights to manage the oracle.
Ongoing verification for maximum security.
Does not require gas tokens.
Grants the verified user permission to update the oracle.
Done only once, when the oracle is first created.
Requires gas tokens.
While we offer an extensive library of assets and support for multiple networks, we understand the need for continuous expansion. Here's how you can request the integration of new assets or blockchain networks into the DIA Oracle Builder.
If there's a specific asset you'd like to see added to the DIA library for use in the DIA Oracle Builder, please follow these steps:
Asset Details: Prepare a brief document detailing the asset's name, its significance, its current market presence, and any other relevant information.
Exchange where is traded: Add a list of the CEXs and DEXs where the asset is traded, including the asset pairs, if possible.
Use case: Explain for which type of use case you would build using the price oracle.
For those seeking integration of new layer-1 or layer-2 networks into the DIA Oracle Builder, here's how to proceed:
Network Details: Compile information about the network, including its name, its unique features, its user base, and any other pertinent data.
Integration Benefits: Describe the advantages and potential use cases that would arise from the DIA Oracle Builder supporting this network.
The DIA Oracle Builder currently supports the following testnet networks:
Ethereum Sepolia
Arbitrum Sepolia
Polygon Amoy
If you're seeking support for a network not listed above, please follow the request flow to get in touch with us.
Tokens not trading via DIA’s integrated sources are ineligible for selection. Get in touch us with via or to request a new source integration.
Contact Us: Reach out to the DIA team via our . Share the prepared details and await our response.
Contact Us: Connect with the DIA team on our . Provide the gathered information and wait for our feedback.