query method is used to initialise a redstone query
Last updated 3 years ago
const price = await redstone.query() .symbol("AR") .latest() .exec(); console.log(price.value); // latest price value for AR token (in USD) console.log(price.timestamp); // the exact timestamp of the price
To learn more, visit the Redstone Query page