How to use the tardis-dev.replayNormalized function in tardis-dev

To help you get started, we’ve selected a few tardis-dev examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tardis-dev / tardis-node / example.js View on Github external
const { replayNormalized, streamNormalized, normalizeTrades, compute, computeTradeBars } = require('tardis-dev')

const historicalMessages = replayNormalized(
  {
    exchange: 'bitmex',
    symbols: ['XBTUSD'],
    from: '2019-08-01',
    to: '2019-08-02'
  },
  normalizeTrades
)

const realTimeMessages = streamNormalized(
  {
    exchange: 'bitmex',
    symbols: ['XBTUSD']
  },
  normalizeTrades
)

tardis-dev

Convenient access to tick-level historical and real-time cryptocurrency market data via Node.js

MPL-2.0
Latest version published 5 days ago

Package Health Score

63 / 100
Full package analysis