Loading...
Loading...
Use this skill to 'check my DeFi positions', 'view DeFi holdings', 'show my DeFi portfolio', 'what DeFi am I invested in', 'show my staking positions', 'show my lending positions', 'DeFi balance', 'DeFi 持仓', '查看DeFi持仓', '我的DeFi资产', '持仓详情', '持仓列表', or mentions viewing DeFi holdings, positions, portfolio across protocols. Covers positions overview and per-protocol position detail. Do NOT use for deposit/redeem/claim operations — use okx-defi-invest. Do NOT use for wallet token balances — use okx-wallet-portfolio. Do NOT use for DEX spot swaps — use okx-dex-swap.
npx skill4agent add okx/onchainos-skills okx-defi-portfoliookx-defi-investokx-dex-marketokx-wallet-portfoliookx-dex-swap# Get DeFi holdings overview across chains
onchainos defi positions \
--address 0xYourWallet \
--chains ethereum,bsc,solana
# Get detailed holdings for a specific protocol (analysisPlatformId from positions output)
onchainos defi position-detail \
--address 0xYourWallet \
--chain ethereum \
--platform-id 67890| # | Command | Description |
|---|---|---|
| 1 | | Get user DeFi holdings overview |
| 2 | | Get detailed holdings for a protocol |
| Chain | Name / Aliases | chainIndex |
|---|---|---|
| Ethereum | | |
| BSC | | |
| Polygon | | |
| Arbitrum | | |
| Base | | |
| X Layer | | |
| Avalanche | | |
| Optimism | | |
| Fantom | | |
| Sui | | |
| Tron | | |
| TON | | |
| Linea | | |
| Scroll | | |
| zkSync | | |
| Solana | | |
1. onchainos wallet status → check if logged in, get active account
2. onchainos wallet addresses → get addresses grouped by chain category:
- XLayer addresses
- EVM addresses (Ethereum, BSC, Polygon, etc.)
- Solana addresses
3. Match address to target chain:
- EVM chains → use EVM address
- Solana → use Solana address
- XLayer → use XLayer addressokx-agentic-walletwallet balance --allwallet switch <id>wallet addresses| User says | Action |
|---|---|
| View positions / portfolio / holdings | |
| View detail for a protocol | |
| Redeem / claim after viewing | Suggest → use |
defi positionsanalysisPlatformIddefi positions| # | Platform | analysisPlatformId | Chains | Positions | Value(USD) |
|---|---|---|---|---|---|
| 1 | Aave V3 | 12345 | ETH,BSC | 2 | $120.00 |
analysisPlatformIdposition-detailanalysisPlatformIdwalletIdPlatformList[*].platformList[*]platformNameanalysisPlatformIdnetworkBalanceList[*].networkinvestmentCountcurrencyAmount{ "ok": true, "data": [ { "walletIdPlatformDetailList": [...] }, ... ] }data.get()datadefi position-detail| Type | Asset | Amount | Value(USD) | investmentId | aggregateProductId | Token Contract | Rewards |
|---|---|---|---|---|---|---|---|
| Supply | USDT | 1.002285 | $1.0025 | 127 | 71931 | 0x970223...7 | 0.000080 AVAX |
| Pending | sAVAX | 0.00000091 | $0.000012 | – | – | – | Platform reward |
investmentIdaggregateProductIdinvestmentIdredeemclaimokx-defi-investaggregateProductId–––Platform rewardPendinghealthRate < 1.5| investType | Description |
|---|---|
| 1 | Save (savings/yield) |
| 2 | Pool (liquidity pool) |
| 3 | Farm (yield farming) |
| 4 | Vaults |
| 5 | Stake |
| 6 | Borrow |
| 7 | Staking |
| 8 | Locked |
| 9 | Deposit |
| 10 | Vesting |
| Just completed | Suggest |
|---|---|
| 1. View detail → |
| 1. Redeem position → use |
--address--chains0x…solana0x…ethereum,bsc,polygon,arbitrum,base,xlayer,avalanche,optimism,fantom,linea,scroll,zksyncsolanasuiT…trontondefi positions--chains--chains ethereum,bsc--chaindefi position-detail--chain--chains--addressposition-detailanalysisPlatformIdpositions--platform-idethereum1bsc56solana501