Comment on page
query
query method is used to initialise a redstone query
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
Last modified 2yr ago