Would you like to clone this notebook?

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


tardis-dev stream market data normalized

node v12.22.12
version: 1.0.0
const { streamNormalized, normalizeTrades, normalizeBookChanges } = require('tardis-dev') async function run() { const messages = streamNormalized( { exchange: 'bitmex', symbols: ['XBTUSD', 'ETHUSD'] }, normalizeTrades, normalizeBookChanges ) for await (const message of messages) { console.log(`${message.symbol} ${message.type} ${message.timestamp.toISOString()}`) } } run()

no comments

    sign in to comment