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