Binance Connector JS
    Preparing search index...

    Function shouldRetryRequest

    • Determines whether a request should be retried based on the provided error.

      This function checks the HTTP method, response status, and number of retries left to determine if a request should be retried.

      Parameters

      • error: object | AxiosError<unknown, any>

        The error object to check.

      • Optionalmethod: string

        The HTTP method of the request (optional).

      • OptionalretriesLeft: number

        The number of retries left (optional).

      Returns boolean

      true if the request should be retried, false otherwise.