Reference: Ticker (Level 1)
import { publicWsSubscription } from 'ts-kraken'; publicWsSubscription({ channel: 'ticker', params: { symbol: ['BTC/USD'] } }) .subscribe(({ data: [{ symbol, last }] }) => { console.log({ symbol, last }); }); Copy
import { publicWsSubscription } from 'ts-kraken'; publicWsSubscription({ channel: 'ticker', params: { symbol: ['BTC/USD'] } }) .subscribe(({ data: [{ symbol, last }] }) => { console.log({ symbol, last }); });
Reference: Ticker (Level 1)
Example