Binance Connector JS
    Preparing search index...
    Index

    Constructors

    Methods

    • Get BFUSD rate history sorted by descending order.

      Weight(IP): 150

      Security Type: USER_DATA

      Notes:

      • The time between startTime and endTime cannot be longer than 6 months.
      • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
      • If startTime is sent but endTime is not sent, endTime will default to current time, and results from startTime onward will be returned.
      • If endTime is sent but startTime is not sent, startTime defaults to the current time minus one month, and data between startTime and endTime will be returned.

      Parameters

      Returns Promise<RestApiResponse<GetBfusdRateHistoryResponse>>

    • Get RWUSD rate history sorted by descending order.

      Weight(IP): 150

      Security Type: USER_DATA

      Notes:

      • The time between startTime and endTime cannot be longer than 6 months.
      • If startTime and endTime are both not sent, then the last 30 days' data will be returned.
      • If startTime is sent but endTime is not sent, endTime will default to current time, and results from startTime onward will be returned.
      • If endTime is sent but startTime is not sent, startTime defaults to the current time minus one month, and data between startTime and endTime will be returned.

      Parameters

      Returns Promise<RestApiResponse<GetRwusdRateHistoryResponse>>

    • Generic function to send a request.

      Type Parameters

      • T

      Parameters

      • endpoint: string

        The API endpoint to call.

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

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

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

        Query parameters for the request.

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

        Body parameters for the request.

      Returns Promise<RestApiResponse<T>>

      A promise resolving to the response data object.

    • Generic function to send a signed request.

      Type Parameters

      • T

      Parameters

      • endpoint: string

        The API endpoint to call.

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

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

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

        Query parameters for the request.

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

        Body parameters for the request.

      Returns Promise<RestApiResponse<T>>

      A promise resolving to the response data object.