Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 514 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 514 Bytes

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