npm.io
0.2.2 • Published 5 years ago

rxbf

Licence
MIT
Version
0.2.2
Deps
5
Size
53 kB
Vulns
0
Weekly
0

rxbf

Reactive bitFlyer Lightning Library

Install

yarn

yarn add rxbf
npm
npm i -S rxbf

How to use

HTTP Private API
import { HttpAuthClient } from 'rxbf';
const client = new HttpAuthClient(API_KEY, API_SECRET);
client.permissions().then((permissions) => console.log(permissions));
Realtime API
import { RealtimeAuthClient } from 'rxbf';
const client = new RealtimeAuthClient(API_KEY, API_SECRET);
client.childOrderEvents().subscribe((event) => console.log('Child order event:', event));
client.ticker('BTC_JPY').subscribe((ticker) => console.log('Ticker:', ticker));

Keywords