Created
October 9, 2020 07:51
-
-
Save thaaddeus/0baab4b0f134af223e8b1d63d71a3b0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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