0.0.5 • Published 4 years ago

crypto-ohlcv v0.0.5

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

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 }>;