Getting Started
Installation
npm install tardis-dev --saveHistorical Replay
const { replay } = require('tardis-dev')
const messages = replay({
exchange: 'bitmex',
filters: [
{ channel: 'trade', symbols: ['XBTUSD'] },
{ channel: 'orderBookL2', symbols: ['XBTUSD'] }
],
from: '2019-05-01',
to: '2019-05-02'
})
for await (const message of messages) {
console.log(message)
}const tardis = require('tardis-dev')
const { replayNormalized, normalizeTrades, normalizeBookChanges } = tardis
const messages = replayNormalized(
{
exchange: 'bitmex',
symbols: ['XBTUSD', 'ETHUSD'],
from: '2019-05-01',
to: '2019-05-02'
},
normalizeTrades,
normalizeBookChanges
)
for await (const message of messages) {
console.log(message)
}Real-Time Streaming
Key Capabilities
Debugging and logging
Usage with TypeScript
Reference pages
Historical market data helpers
init(options)
init(options)init options
name
type
default
description
getExchangeDetails(exchange)
getExchangeDetails(exchange)type of response returned by awaiting on getExchangeDetails
getExchangeDetailsgetApiKeyAccessInfo(apiKey?)
getApiKeyAccessInfo(apiKey?)type of response returned by awaiting on getApiKeyAccessInfo()
getApiKeyAccessInfo()clearCache()
clearCache()Last updated
