bitvavo / node-bitvavo-api

Node wrapper for the Bitvavo API
ISC License
19 stars 15 forks source link

Limit incoming data on websocket #17

Open the-serious-programmer opened 2 years ago

the-serious-programmer commented 2 years ago

Our application heavily relies on: https://github.com/bitvavo/node-bitvavo-api#book-subscription-with-local-copy

It would be awesome to have a configuration parameter that can limit the amount of data coming in, so that instead of 100+ bids and asks, for instance the top 10 for both can be returned on every book update. This to limit latency, network bandwith etc.

StefanBloemheuvel commented 2 years ago

Did you found a way to achieve this?

the-serious-programmer commented 2 years ago

@StefanBloemheuvel unfortunately not, this cannot be solved without work on the bitvavo back-end (as the back-end has to send less data to the client).

quixot1c commented 2 years ago

If you only need the best bid and ask you can use the ticker subscription. Otherwise I guess you are out of luck.