Links

portfolioItemObject

  • protocol(string) - the name of the DeFi protocol.
  • websiteUrl(string) - the website of the DeFi protocol.
  • logo(string) - the logo of the DeFi protocol.
  • usdAmount(string) - the total USD amount of the account's positions in the DeFi protocol.
  • healthRate(string, optional) - the account's health index in the lending protocol (such as: aave, makerdao, liquity), when it is greater than 10, will return 10, when it is less than 1, the user's assets will be liquidated.
  • healthRateTip(string, optional) - the description of the healthRate field.
  • proxy(string, optional) - the user's agency DeFi protocol(such as: "instadapp").
  • claimableRewardAmount(string, optional) - the account claimable USD amount.
  • positionInfos(object array, defined below) - the detailed information like Liquidity Pool, Supplied, Borrowed, Reward, Farming, Locked, Yield, Deposit, Staked assets, token infos and USD amount of each token.
  • positionInfo Object schema:
    • contractAddress(hex string) - the contract address of the pool.
    • logo(string) - the logo of the DeFi protocol.
    • symbol(string) - the symbol of the token.
    • usdValue(string, float) - the USD value of the tokens.
    • section(string) - The front end is displayed to the user to indicate the corresponding function. The value is one of : Liquidity Pool, Supplied, Borrowed, Reward, Farming, Locked, Yield, Deposit, Staked, Vesting, Governance.
    • balanceTokens(object array, defined below) - Array of TokenObject.
    • rewardTokens(object array, defined below) - Array of TokenObject.
    • TokenObject Object schema:
      • contractAddress(hex string) - the contract address of the pool.
      • logo(string) - the logo of the token.
      • symbol(string) - the symbol of the token.
      • usdValue(string, float) - the USD value of the token.