Binance Web3 Connector JS
    Preparing search index...

    Request parameters for listDeFiInvestments operation in DefiDataApi. ListDeFiInvestmentsRequest

    interface ListDeFiInvestmentsRequest {
        binanceChainId?: string;
        defiProtocolId?: string;
        investType: ListDeFiInvestmentsInvestTypeEnum;
        nonce?: string;
        page?: number;
        recvWindow?: number | bigint;
        size?: number;
        sortDirection?: ListDeFiInvestmentsSortDirectionEnum;
        sortField?: string;
        tokenAddressList?: string[];
    }
    Index
    binanceChainId?: string

    One of the supported chains — see Supported Chains & Protocols for the supported chain ID values. Chains outside this whitelist are rejected with 40001. When omitted (or blank), results span all supported chains.

    DefiDataApiListDeFiInvestments

    defiProtocolId?: string

    Filter by DeFi protocol ID.

    DefiDataApiListDeFiInvestments

    Filter by investment type. Required. Known values: Earn, LiquidityPool.

    DefiDataApiListDeFiInvestments

    nonce?: string

    Unique request identifier for anti-replay; falls back to X-OC-SIGN if omitted.

    DefiDataApiListDeFiInvestments

    page?: number

    Page number (1-based).

    DefiDataApiListDeFiInvestments

    recvWindow?: number | bigint

    Allowed time deviation in milliseconds (default: 5000, max: 60000).

    DefiDataApiListDeFiInvestments

    size?: number

    Page size. Max: 100.

    DefiDataApiListDeFiInvestments

    Sort direction.

    DefiDataApiListDeFiInvestments

    sortField?: string

    Field to sort by. Only two values are accepted: tvl, apy. Note: sorting by APY uses apy (the server-side field name), even though the response exposes apyBps / apyDisplay. Other values are not supported.

    DefiDataApiListDeFiInvestments

    tokenAddressList?: string[]

    Filter by token addresses. When this field is provided, binanceChainId is required — the same address can be a different token on different chains; omitting the chain returns 40001.

    DefiDataApiListDeFiInvestments