Binance Connector JS
    Preparing search index...

    BorrowRepayApi - interface BorrowRepayApi

    interface BorrowRepayApiInterface {
        getFutureHourlyInterestRate(
            requestParameters: GetFutureHourlyInterestRateRequest,
        ): Promise<RestApiResponse<GetFutureHourlyInterestRateResponse>>;
        getInterestHistory(
            requestParameters?: GetInterestHistoryRequest,
        ): Promise<RestApiResponse<GetInterestHistoryResponse>>;
        marginAccountBorrowRepay(
            requestParameters: MarginAccountBorrowRepayRequest,
        ): Promise<RestApiResponse<MarginAccountBorrowRepayResponse>>;
        queryBorrowRepayRecordsInMarginAccount(
            requestParameters: QueryBorrowRepayRecordsInMarginAccountRequest,
        ): Promise<RestApiResponse<QueryBorrowRepayRecordsInMarginAccountResponse>>;
        queryMarginInterestRateHistory(
            requestParameters: QueryMarginInterestRateHistoryRequest,
        ): Promise<RestApiResponse<QueryMarginInterestRateHistoryResponse>>;
        queryMaxBorrow(
            requestParameters: QueryMaxBorrowRequest,
        ): Promise<RestApiResponse<QueryMaxBorrowResponse>>;
    }

    Implemented by

    Index

    Methods

    • Get Interest History

      Response in descending order If isolatedSymbol is not sent, crossed margin data will be returned The max interval between startTime and endTime is 30 days. It is a MUST to ensure data correctness. If startTimeand endTime not sent, return records of the last 7 days by default. If startTime is sent and endTime is not sent, return records of [max(startTime, now-30d), now]. If startTime is not sent and endTime is sent, return records of [endTime-7, endTime] type in response has 4 enums: PERIODIC interest charged per hour ON_BORROW first interest charged on borrow PERIODIC_CONVERTED interest charged per hour converted into BNB ON_BORROW_CONVERTED first interest charged on borrow converted into BNB PORTFOLIO interest charged daily on the portfolio margin negative balance

      Weight: 1(IP)

      Parameters

      Returns Promise<RestApiResponse<GetInterestHistoryResponse>>

      BorrowRepayApiInterface