Binance Connector JS
    Preparing search index...

    Function sendRequest

    • Generic function to send a request with optional API key and signature.

      Type Parameters

      • T

      Parameters

      • configuration: ConfigurationRestAPI
      • endpoint: string

        The API endpoint to call.

      • method: "GET" | "POST" | "DELETE" | "PUT" | "PATCH"

        HTTP method to use (GET, POST, DELETE, etc.).

      • params: Record<string, unknown> = {}

        Query parameters for the request.

      • OptionaltimeUnit: TimeUnit

        The time unit for the request.

      • options: { isSigned?: boolean } = {}

        Additional request options (isSigned).

      Returns Promise<RestApiResponse<T>>

      A promise resolving to the response data object.