Get Price
const strike = new Strike(window.ethereum);
let price;
(async function () {
price = await strike.getPrice(Strike.WBTC);
console.log('WBTC in USD', price); // 6 decimals, see Open Price Feed docs
price = await strike.getPrice(Strike.ETH, Strike.USDC); // supports sTokens too
console.log('ETH in USDC', price);
})().catch(console.error);Last updated
Was this helpful?