Protocol Positions - These types appear in the
protocolPositions object within the portfolio responseProtocol Position Types
- All Types
- By Risk Level
- Code Examples
Basic Holdings
Basic Holdings
WALLET - Direct wallet custody
- Tokens held directly in wallet
- Not deposited into any protocol
- Fully liquid and transferable
- Tokens with transfer restrictions
- Vesting schedules
- Cannot be transferred until unlock date
Lending & Borrowing
Lending & Borrowing
LENDING - Supplied assets earning interest
- Aave deposits
- Compound supplies
- Liquidity provided to money markets
- Funds deposited but not specifically lending
- May earn yield or rewards
- NFTs used as collateral
- Borrowing against NFT value
- Active loan against NFT
- Providing liquidity for NFT loans
Liquidity Provision
Liquidity Provision
LIQUIDITYPOOL - DEX liquidity positions
- Uniswap V2/V3 positions
- SushiSwap pools
- Curve pools
- Earn trading fees
- Sudoswap positions
- NFT AMMs
Yield Strategies
Yield Strategies
FARMING - Yield farming positions
- Staking LP tokens for rewards
- Farm protocol tokens
- Multiple reward streams
- Borrowed funds used for farming
- Amplified returns (and risks)
- Examples: Alpaca Finance, Gearbox
- Protocol staking (e.g., ETH 2.0)
- Single-sided staking
- Earn staking rewards
- NFTs staked for rewards
- Gaming NFTs earning yield
- Auto-compounding vaults
- Yield aggregators
Vaults
Vaults
VAULT - Strategy vaults
- Yearn vaults
- Auto-compounding strategies
- Managed yield optimization
- Specialized vault mechanics
- Custom strategies
Derivatives
Derivatives
MARGIN - Margin trading positions
- Leveraged spot trades
- Open long/short positions
- Custom margin implementations
- Perpetual swaps (dYdX, GMX)
- Funding rate exposure
- Amplified exposure
- Borrowed capital
- Purchased calls or puts
- Defined risk exposure
- Sold calls or puts
- Premium collection
- Unlimited risk potential
Special Categories
Special Categories
REWARDS - Claimable rewards
- Unclaimed farming rewards
- Staking rewards pending
- Airdrop allocations
- Team/investor tokens vesting
- Gradual unlock over time
- Locked governance tokens
- Vote-escrowed positions (veTokens)
- Protocol governance power
- Protocol treasury positions
- Long-term holdings
- CEX-style spot positions
- On-chain order books
- Nexus Mutual coverage
- Protocol insurance
- Capital at risk for premiums
- Providing insurance coverage
- Partial NFT ownership
- Fractional.art positions
Common Use Cases
- Portfolio Analytics
- Yield Tracking
- Liquidation Risk
Track asset allocation across DeFi strategies:
Best Practices
Check Position Type
Check Position Type
Always check the position type before making assumptions:
Handle Missing Types
Handle Missing Types
Not all positions will have all asset types:
Calculate Total Value
Calculate Total Value
Use
totalValue when available: