Price Data Feeds
Get price info on chain with Chainlink Price Feeds for multiple coin pairs
Data Feeds are the quickest way to connect your smart contracts to the real-world data such as asset prices, reserve balances, NFT floor prices, and L2 sequencer health.
Types of data feeds
Data feeds provide many different types of data for your applications.
Using Data Feeds
Start by importing the datum-contracts interface
Now create an instance of the oracle-interface , and the Oracle Address should be the Price Oracle address for the chain , you are trying out
You can call
requestPairPriceto an updated price for the pair
Call
getLatestPriceto get the price for the Pair directly
Full Example Contract Code
In there simple steps , you can get Price Feeds , ProofOfReserve feeds and NFTFloorPrices from the Chainlink Oracle to your chain with DATUM
Last updated
