Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including tardis-client with all npm packages installed. Try it out:

const { TardisClient } = require('tardis-client'); const tardisClient = new TardisClient(/* { apiKey:'<OPTIONAL>'} */); async function replay() { const liquidations = []; const messages = tardisClient.replay({ exchange: 'bitmex', from: '2019-05-01', to: '2019-05-01 03:00', filters: [{ channel: 'liquidation', symbols: ['XBTUSD'] }] }); for await (let { message, localTimestamp } of messages) { liquidations.push(message); } return liquidations; } await replay();

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

tardis-client v1.2.4

Node.js client for tardis.dev - historical tick-level cryptocurrency market data replay API.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free