Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

binance.websockets.trades() #227

Open
Raspberry42 opened this issue Apr 6, 2021 · 0 comments
Open

binance.websockets.trades() #227

Raspberry42 opened this issue Apr 6, 2021 · 0 comments

Comments

@Raspberry42
Copy link

Raspberry42 commented Apr 6, 2021

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);
});
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant