Get last 24 hours OHLCV(open, high, low, close, volume) of all pairs.
npm install crypto-ohlcvGet last 24 hours OHLCV(open, high, low, close, volume) of all pairs.
``bash`
npx crypto-ohlcv Binance
`javascript
/ eslint-disable import/no-unresolved,no-console /
const getOHLCV = require('crypto-ohlcv').default;
(async () => {
console.info(await getOHLCV('Binance'));
})();
`
There is only one API in this library:
`typescript``
/**
* 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 }>;