Usage
Limestone api usage
First, you need to import limestone module
Node.js require
ES6 import
// 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
See more examples in the documentation of the following methods:
You can also check out docs for the limestone fluent interface, which makes the price fetching even simpler thanks to human readable syntax.
Copy link