Reference: Orders (Level 3)
import { getPrivateSubscription } from 'ts-kraken'; getPrivateSubscription({ channel: 'level3', params: { symbol: ['BTC/USD'] } }) .then(balance$ => { balance$.subscribe(({ type, data: [{ bids, asks }] }) => { console.log({ type, bids, asks }); }); }); Copy
import { getPrivateSubscription } from 'ts-kraken'; getPrivateSubscription({ channel: 'level3', params: { symbol: ['BTC/USD'] } }) .then(balance$ => { balance$.subscribe(({ type, data: [{ bids, asks }] }) => { console.log({ type, bids, asks }); }); });
Reference: Orders (Level 3)
Example