0.1.15 • Published 5 years ago

@dripjs/intelligence v0.1.15

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
5 years ago

dripjs Intelligence

use

import { IntelFactory, BitmexSpy } from 'dripjs-intelligence';

const bitmexSpy = IntelFactory.create(BitmexSpy, {
  apiKey: `your apiKey`,
  apiSecret: `your apiSecret`,
  testnet: true,
});
const pair = 'XBTUSD';
bitmexSpy.getTicker$(pair).subscribe((res) => {
  console.log(res);
});
setTimeout(() => {
  console.log('do stop ticker subscription');
  bitmexSpy.stopTicker(pair);
}, 5000);