mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-03 15:10:49 +00:00
Binance: Fix Request Rate Limits (#483)
Request types / variations contribute different weights towards the limit Binance enforces. These can be considerably more than 1 per request, which results in the server side limits being hit, producing 429 and 418 responses and bans
This commit is contained in:
@@ -160,7 +160,7 @@ func (r *Requester) doRequest(req *http.Request, p *Item) error {
|
||||
|
||||
if resp.StatusCode < http.StatusOK ||
|
||||
resp.StatusCode > http.StatusAccepted {
|
||||
return fmt.Errorf("%s unsuccessful HTTP status code: %d raw response: %s",
|
||||
return fmt.Errorf("%s unsuccessful HTTP status code: %d raw response: %s",
|
||||
r.Name,
|
||||
resp.StatusCode,
|
||||
string(contents))
|
||||
|
||||
Reference in New Issue
Block a user