0.1.3 • Published 4 years ago
crypto-volume v0.1.3
crypto-volume
Get last 24 hours trade volume of all pairs.
Quick start
npx crypto-volume Binance
How to use
/* eslint-disable import/no-unresolved,no-console */
const getVolume = require('crypto-volume').default;
(async (): Promise<void> => {
console.info(await getVolume('Binance'));
})();
API Manual
There is only one API in this library:
/**
* Get last 24 hours trade volume of all pairs.
*
* @param exchange Thee exchange name
* @returns Last 24 hours trade volume
*/
export default function getVolume(exchange: string): Promise<{ [key: string]: Volume }>;