Reference: Get Ticker Information
import { publicRestRequest } from 'ts-kraken'; publicRestRequest({ url: 'Ticker', params: { pair: 'ETHEUR,BTCUSD' }, }).then((btcAndEthTickers) => { console.log({ btcAndEthTickers }); }).catch(error => { console.error({ error }); }); Copy
import { publicRestRequest } from 'ts-kraken'; publicRestRequest({ url: 'Ticker', params: { pair: 'ETHEUR,BTCUSD' }, }).then((btcAndEthTickers) => { console.log({ btcAndEthTickers }); }).catch(error => { console.error({ error }); });
Tip: This library implements the helper method getTickersPrices which outputs a nicer object format.
Reference: Get Ticker Information
Example
Remarks
Tip: This library implements the helper method getTickersPrices which outputs a nicer object format.