Skip to content

Instantly share code, notes, and snippets.

@thaaddeus
Created October 9, 2020 07:51
Show Gist options
  • Save thaaddeus/0baab4b0f134af223e8b1d63d71a3b0e to your computer and use it in GitHub Desktop.
Save thaaddeus/0baab4b0f134af223e8b1d63d71a3b0e to your computer and use it in GitHub Desktop.
const { streamNormalized, normalizeLiquidations } = require('tardis-dev')
async function monitorBitMEXLiquidations() {
const bitmexLiquidations = streamNormalized(
{
exchange: 'bitmex',
symbols: ['XBTUSD', 'ETHUSD']
},
normalizeLiquidations
)
console.log('BitMEX liquidations monitor started...')
for await (const liquidation of bitmexLiquidations) {
console.log(liquidation)
}
}
monitorBitMEXLiquidations()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment