binance-leaderboard-listener
v1.0.1
Published
A simple pnl watcher for Binance leaderboard
Downloads
28
Maintainers
Readme
binance-leaderboard-listener
A simple pnl watcher for Binance leaderboard
Installation
npm i binance-leaderboard-listener
Basic usage
const pnlWatcher = require("binance-leaderboard-listener")
const listener = pnlWatcher.listen({
encryptedUid: <BINANCE_ENCRYPTED_USER_ID>,
delay: <DELAY (5000)>,
tradeType: <TRADETYPE ("PERPETUAL" for example)>
})
listener.on('update', (data) => {
<process data...>
})
Examples
node examples/watch_changes.js