Limestone api usage

Firstly, you need to import limestone module

// Using Node.js `require()`
const limestone = require('limestone-api');

// Using ES6 imports
import limestone from 'limestone-api';

Then you can fetch the prices with just a single line of code

const price = await limestone.getPrice("AR");

console.log(price.value); // latest price value for AR token (in USD)
console.log(price.timestamp); // the exact timestamp of the price

To read more advanced examples, visit the methods documentation:

You can also check out docs for the limestone fluent interface, which makes the price fetching even simpler for most popular query use cases.

Last updated