Simple calculators to get prices or market cap of currencies and cryptocurrencies.
This is a simple repository to help the development of projects that want to calculate currencies exchange.
const tinyMarketLib = require('tiny-market-lib');
Circulating Supply - 18,745,293 BTC
Market Cap - $655,637,242,497
Price - $34,976.10
tinyMarketLib.getMarketCap(18745293, 34976.10);
tinyMarketLib.getPriceByMarketCap(655637242497, 18745293);
tinyMarketLib.getSellAmount(1, 655637242497, 18745293);
Token Circulating Supply - 1.1778 PUDDY
Crypto Circulating Supply - 0.0118560 BNB
Market Cap - 0.011856 BNB
tinyMarketLib.getSellAmount(1, 0.0118560, 1.1778);
tinyMarketLib.getBuyAmount(1, 0.0118560, 1.1778);