Sends a Rest request to a public Endpoint @ https://api.kraken.com/0/public/<Endpoint>
https://api.kraken.com/0/public/<Endpoint>
import { publicRestRequest } from 'ts-kraken'; publicRestRequest({ url: 'Ticker', params: { pair: 'XBTEUR'}}) .then(data => { const [pairKey] = Object.keys(data); console.log({ tickerData: data[pairKey]}); }); Copy
import { publicRestRequest } from 'ts-kraken'; publicRestRequest({ url: 'Ticker', params: { pair: 'XBTEUR'}}) .then(data => { const [pairKey] = Object.keys(data); console.log({ tickerData: data[pairKey]}); });
Sends a Rest request to a public Endpoint @
https://api.kraken.com/0/public/<Endpoint>