binance-exchange / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.
MIT License
528 stars 145 forks source link

binance.websockets.trades() #227

Open Raspberry42 opened 3 years ago

Raspberry42 commented 3 years ago

Hello, How many elements can I put in this array? Thank you in advance.

let array = ['BNBBTC', 'ETHBTC']

binance.websockets.trades(array, (trades) => {
  let {e:eventType, E:eventTime, s:symbol, p:price, q:quantity, m:maker, a:tradeId} = trades;
  console.info(symbol+" trade update. price: "+price+", quantity: "+quantity+", maker: "+maker);
});