Binance Connector JS
    Preparing search index...

    Function parseRateLimitHeaders

    • Parses the rate limit headers from the Axios response headers and returns an array of RestApiRateLimit objects.

      Parameters

      • headers:
            | Partial<
                RawAxiosHeaders & {
                    "Cache-Control": AxiosHeaderValue;
                    "Content-Encoding": AxiosHeaderValue;
                    "Content-Length": AxiosHeaderValue;
                    "Content-Type": AxiosHeaderValue;
                    Server: AxiosHeaderValue;
                } & { "set-cookie": string[] },
            >
            | AxiosResponseHeaders

        The Axios response headers.

      Returns RestApiRateLimit[]

      An array of RestApiRateLimit objects containing the parsed rate limit information.