tardis-dev stream market data

node v12.22.12
version: 1.0.0
endpointsharetweet
const { stream } = require('tardis-dev') async function run() { const messages = stream({ exchange: 'bitmex', filters: [{ channel: 'trade', symbols: ['XBTUSD'] }, { channel: 'orderBookL2', symbols: ['XBTUSD'] }] }) for await (const {message, localTimestamp} of messages) { console.log(`${localTimestamp.toISOString()} ${message.action} ${message.table}`) } } run()
Loading…

no comments

    sign in to comment