bitbank-data
v1.0.0
Published
easily create application using bitbank data
Downloads
1
Readme
Create application using bitbank data
Install
npm i --save bitbank-data
Usage
Usable both in node or browser environments
Candlestick
import { BitbankCandlestick } from 'bitbank-data/candlestick/candlestick';
import { bitbankRequest } from 'bitbank-data/requests/bitbank-request';
const bitbankCandlestick = new BitbankCandlestick(bitbankRequest);
bitbankCandlestick.getApproximateHistoryPrice('btc_jpy', 1524182400000, '5min').subscribe(price => console.log('Got price', price));
Ticker
import { bitbankRequest } from 'bitbank-data/requests/bitbank-request';
import { BitbankCandlestick } from 'bitbank-data/candlestick/candlestick';
import { BitbankTicker } from 'bitbank-data/ticker/ticker';
const bitbankCandlestick = new BitbankCandlestick(bitbankRequest);
const bitbankTicker = new BitbankTicker(bitbankRequest, bitbankCandlestick);
bitbankTicker.fetchTickerWithChange24$('btc_jpy').subscribe(ticker => {
console.log('Got btc_jpy ticker =>', ticker);
});