Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

tardis-client example (BitMEX historical liquidations)

node v12.22.12
version: 1.0.0
endpointsharetweet
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(); // Click “▶ run” to try this snippet live
Loading…

no comments

    sign in to comment