QuantConnect / Lean.Brokerages.Binance

Binance Brokerage Plugin
Apache License 2.0
3 stars 17 forks source link

Implement Rate Limit per Rest Client #22

Open AlexCatarino opened 1 year ago

AlexCatarino commented 1 year ago

Expected Behavior

Support a rate limit for each endpoint. BinanceFutures has a higher rate limit 300 per 10 seconds (30/s) against 5 messages per second from Binance.

Actual Behavior

There is a single rate limit per endpoint.

Potential Solution

N/A

Checklist

AlexCatarino commented 5 months ago

Local deployment has a rate limit issue during warm-up

Too Many Requests, Content: {"code":-1003,"msg":"Too many requests; current limit of IP(XX.XX.XX.XX) is 2400

The lookback is around a week, and it requests minute-resolution data.