Chainlink

Chainlink Price Feed Pair

The function getChainlinkPriceFeedPair(pair) takes pair (supported by Chainlink) as an argument and returns the latest price for an asset according to the Chainlink's DEFI Price Feeds network.

Support

This function is internally tied to data gathered on a specific Blockchain.
Blockchain
Is supported
Function Name
Ethereum (ETH)
​
βœ…
getChainlinkPriceFeedPair
Binance Smart Chain (BSC)
Work in Progress
TBA

Details

Parameters
pair: string; the assets pair string supported by Chainlink
Output
1
{
2
price: {
3
value: int256,
4
decimals: int256
5
},
6
aggregator_round_id: int256,
7
timestamp: int256
8
}
Copied!
price - the decimal price of an assets pair
aggregator_round_id - the latest completed round ID where the answer was updated for given pair
timestamp - the block timestamp (in seconds since the epoch according to UNIX Time) when an answer was last updated for given pair
Last modified 10mo ago