cryptopia-api
Version:
Asynchronous Node.js Module for accessing both Public and Private Cryptopia APIs
11 lines (10 loc) • 351 B
JavaScript
const Cryptopia = require('../index')();
(async function () {
try {
//Public
const currencies = await Cryptopia.getCurrencies();
console.log("Number of Available Currencies:", currencies.Data.length); //Length of Array for available Currencies from API
} catch (err) {
console.error(err);
}
})();