binance-connector-java icon indicating copy to clipboard operation
binance-connector-java copied to clipboard

Added RetryAfter header handler

Open matteoxleggieri opened this issue 1 year ago • 0 comments

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.

matteoxleggieri avatar Nov 04 '23 16:11 matteoxleggieri