binance-connector-java
binance-connector-java copied to clipboard
Added RetryAfter header handler
Based on official API documentation here for limits, in the case of HttpStatusCode 429 or 418 the header retry-after is provided in the response headers. The header would be very helpful in case a limit is reached to know how much time it is necessary to wait for a new request so I implemented a handler to add this header to the BinanceClientException.