@alphafi/alphalend-sdk - v1.1.2
    Preparing search index...

    Interface MarketData

    Represents a lending market in the protocol Contains all market-specific data including rates, limits, and configuration

    interface MarketData {
        allowedBorrowAmount: Decimal;
        allowedDepositAmount: Decimal;
        availableLiquidity: Decimal;
        borrowApr: {
            interestApr: Decimal;
            rewards: { coinType: string; rewardApr: Decimal }[];
        };
        borrowFee: Decimal;
        borrowWeight: Decimal;
        coinType: string;
        decimalDigit: number;
        liquidationThreshold: Decimal;
        ltv: Decimal;
        marketId: string;
        supplyApr: {
            interestApr: Decimal;
            rewards: { coinType: string; rewardApr: Decimal }[];
            stakingApr: Decimal;
        };
        totalBorrow: Decimal;
        totalSupply: Decimal;
        utilizationRate: Decimal;
        xtokenRatio: Decimal;
    }
    Index

    Properties

    allowedBorrowAmount: Decimal

    Maximum amount that can be borrowed from the market (in base units)

    allowedDepositAmount: Decimal

    Maximum amount that can be deposited into the market (in base units)

    availableLiquidity: Decimal

    Available liquidity in the market (in base units)

    borrowApr: {
        interestApr: Decimal;
        rewards: { coinType: string; rewardApr: Decimal }[];
    }

    Annual percentage rate for borrowers including base interest and additional rewards

    Type declaration

    • interestApr: Decimal

      Base interest rate for borrowers (as a decimal)

    • rewards: { coinType: string; rewardApr: Decimal }[]

      Additional incentive rewards for borrowers

    borrowFee: Decimal

    Fee charged for borrowing (as a decimal percentage)

    borrowWeight: Decimal

    Weighting factor applied to borrowed amounts for risk calculations

    coinType: string

    Fully qualified coin type handled by this market (e.g., "0x2::sui::SUI")

    decimalDigit: number

    Number of decimal places used by the coin (e.g., 9 for SUI)

    liquidationThreshold: Decimal

    Liquidation threshold as a decimal (0.0 to 1.0)

    ltv: Decimal

    Loan-to-value ratio as a decimal (0.0 to 1.0)

    marketId: string

    Unique identifier for the market

    supplyApr: {
        interestApr: Decimal;
        rewards: { coinType: string; rewardApr: Decimal }[];
        stakingApr: Decimal;
    }

    Annual percentage rate for suppliers including base interest and additional rewards

    Type declaration

    • interestApr: Decimal

      Base interest rate for suppliers (as a decimal)

    • rewards: { coinType: string; rewardApr: Decimal }[]

      Additional incentive rewards for suppliers

    • stakingApr: Decimal

      Staking APR for market coin type (e.g. stSUI)

    totalBorrow: Decimal

    Total tokens borrowed from the market (in base units)

    totalSupply: Decimal

    Total token supply in the market (in base units)

    utilizationRate: Decimal

    Current utilization rate as a decimal (0.0 to 1.0)

    xtokenRatio: Decimal

    Exchange rate between base token and xToken (protocol's interest-bearing token)