投資組合功能
透過自然語言提示查詢投資組合資料與餘額。
可執行的操作
| 操作 | 範例提示 |
|---|---|
| 總投資組合 | Show my portfolio |
| 總餘額 | What's my total balance? |
| 所有持倉 | List all my crypto holdings |
| 錢包價值 | How much is my wallet worth? |
| 鏈別餘額 | Show my Base balance |
| 鏈別持倉 | What tokens do I have on Polygon? |
| 代幣餘額 | How much ETH do I have? |
| 跨鏈代幣 | Show my USDC on all chains |
| 最大持倉 | What's my largest holding? |
| 代幣位置 | Where do I have the most ETH? |
提示模式
Show my portfolio
What's my total balance?
Show my {chain} balance
How much {token} do I have?
Show my {token} on all chains
What tokens do I have on {chain}?
支援的區塊鏈: Base、Polygon、Ethereum、Unichain、Solana
使用方式
import { execute } from "./bankr-client";
// 完整投資組合
await execute("Show my portfolio");
// 指定鏈別
await execute("Show my Base balance");
// 指定代幣
await execute("How much ETH do I have?");
// 跨鏈代幣
await execute("Show my USDC on all chains");
相關技能
bankr-client-patterns- 用戶端設定與 execute 函式bankr-api-basics- API 基礎知識bankr-token-trading- 根據投資組合資料進行交易