Reference: Instruments
import { publicWsSubscription } from 'ts-kraken'; publicWsSubscription({ channel: 'instrument' }) .subscribe(({ data: { assets, pairs } }) => { console.log({ assets: assets.length, pairs: pairs.length }); }); Copy
import { publicWsSubscription } from 'ts-kraken'; publicWsSubscription({ channel: 'instrument' }) .subscribe(({ data: { assets, pairs } }) => { console.log({ assets: assets.length, pairs: pairs.length }); });
Reference: Instruments
Example