price-feed
Functions
<dl> <dt><a href="#getPrice">getPrice()</a></dt> <dd><p>Get current price for a token from Chainlink</p> </dd> <dt><a href="#getPrices">getPrices()</a></dt> <dd><p>Get multiple prices in a single call</p> </dd> <dt><a href="#getEthPrice">getEthPrice()</a></dt> <dd><p>Get ETH price in USD</p> </dd> <dt><a href="#getBtcPrice">getBtcPrice()</a></dt> <dd><p>Get BTC price in USD</p> </dd> <dt><a href="#getAllPrices">getAllPrices()</a></dt> <dd><p>Get all available prices on a chain</p> </dd> <dt><a href="#tokenToUsd">tokenToUsd()</a></dt> <dd><p>Convert token amount to USD value</p> </dd> <dt><a href="#usdToToken">usdToToken()</a></dt> <dd><p>Convert USD value to token amount</p> </dd> <dt><a href="#getSupportedPriceChains">getSupportedPriceChains()</a></dt> <dd><p>Get supported price feed chains</p> </dd> <dt><a href="#getAvailableTokens">getAvailableTokens()</a></dt> <dd><p>Get available tokens on a chain</p> </dd> <dt><a href="#hasPriceFeed">hasPriceFeed()</a></dt> <dd><p>Check if price feed exists for a token</p> </dd> <dt><a href="#getAllPriceFeeds">getAllPriceFeeds()</a></dt> <dd><p>Get all supported price feed pairs</p> </dd> </dl>
<a name="getPrice"></a>
getPrice()
Get current price for a token from Chainlink
Kind: global function
<a name="getPrices"></a>
getPrices()
Get multiple prices in a single call
Kind: global function
<a name="getEthPrice"></a>
getEthPrice()
Get ETH price in USD
Kind: global function
<a name="getBtcPrice"></a>
getBtcPrice()
Get BTC price in USD
Kind: global function
<a name="getAllPrices"></a>
getAllPrices()
Get all available prices on a chain
Kind: global function
<a name="tokenToUsd"></a>
tokenToUsd()
Convert token amount to USD value
Kind: global function
<a name="usdToToken"></a>
usdToToken()
Convert USD value to token amount
Kind: global function
<a name="getSupportedPriceChains"></a>
getSupportedPriceChains()
Get supported price feed chains
Kind: global function
<a name="getAvailableTokens"></a>
getAvailableTokens()
Get available tokens on a chain
Kind: global function
<a name="hasPriceFeed"></a>
hasPriceFeed()
Check if price feed exists for a token
Kind: global function
<a name="getAllPriceFeeds"></a>
getAllPriceFeeds()
Get all supported price feed pairs
Kind: global function