jaggedsoft / node-binance-api

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

depthCache all symbols #274

Closed dinfyru closed 5 years ago

dinfyru commented 6 years ago

Is there ways to get info from websockets.depthCache for all symbols? If i do it now, i will have error '{"code":-1003,"msg":"Way too many requests; IP banned until 1535720616258. Please use the websocket for live updates to avoid bans."}'

I need do this for get all info about all symbols in real time.

jaggedsoft commented 6 years ago

Yeah you can run a loop at your program startup to open a new depthCache request every 350ms

It might be easier to subscribe to one of the other endpoints though, do you need actual in depth order book information?

jaggedsoft commented 6 years ago

Feature request: Automatic rate limiting if subscribing to > 100 symbols

bmino commented 6 years ago

I've got a function that staggers the subscriptions in batches at a configurable delay. Want a PR?

jaggedsoft commented 6 years ago

@bmino, all of your pull requests are welcome, your previous ones have been very good. Thanks friend

bmino commented 6 years ago

Glad to help out! I submitted #294 to address this