title: How to stream trades from Binance web socket API in Node.js?
body: <p>I am trying to use the Binance API to get the latest trades on a crypto-currency pair. Here is the endpoint to the API, say for BTC/USDT: <strong>wss://stream.binance.com:9443/ws/btcusdt@trade</strong></p>
  
  <p>I tested this API on <a href="https://www.websocket.org/echo.html" rel="noreferrer">https://www.websocket.org/echo.html</a>, and was successful in getting a continuous stream of new trades.</p>
  
  <p>How do I use this API in Node.js to continuously output the trades on the console? Is there any specific library or package you recommend?</p>