okx-defi

von okx

OKX-aggregiertes DeFi (keine spezifische DApp genannt) – Produktentdeckung, Ausführung von Einzahlungen/Abhebungen/Claims UND Positionsanzeige. **Falls der Benutzer EIN DRITTPROTOKOLL/EINE DRITTDApp namentlich nennt (Aave, Lido, PancakeSwap, Uniswap, Curve, Compound, Morpho, Pendle, Kamino, Raydium, Hyperliquid, Polymarket, …), leite zu okx-dapp-discovery weiter – NICHT hierher, selbst bei 'zeige meine Aave-Positionen'.** INVEST-Auslöser: 'in DeFi investieren', 'Rendite erzielen', 'beste APY finden', 'einzahlen/staken für Rendite', 'DeFi-Produkte suchen',...

npx skills add https://github.com/okx/onchainos-skills --skill okx-defi

OKX DeFi

Discover and manage multi-chain, OKX-aggregated DeFi products and positions through the onchainos defi CLI group.

Preflight

Preflight checks: At the start of each thread, complete the checks in ../okx-agentic-wallet/_shared/preflight.md. If missing, read _shared/preflight.md.

Intent Routing

Load only the reference files required by the selected route.

User IntentReference
Discover / search DeFi products, find best APYinvest.md
Product detail (APY, TVL, accepted tokens)invest.md
Deposit / stake / provide liquidityinvest.md
Withdraw / redeem a position (full or partial)invest.md
Claim rewards (platform / investment / V3 fee / bonus / unlocked principal)invest.md
APY history, TVL history, V3 depth / price chartsinvest.md
View DeFi positions / holdings overviewportfolio.md
Per-protocol position detailportfolio.md
Exact parameters / return schemas — invest, shared support, and charts commandsinvest-cli-reference.md
Exact parameters / return schemas — positions commandsportfolio-cli-reference.md
Errors / failed deposits / expired calldatainvest-troubleshooting.md
Errors / empty positions / address-format issuesportfolio-troubleshooting.md

Typical flow spans both: view positions (Portfolio) → redeem or claim (Invest). Read both reference files when the request chains them.

Route a named third-party DApp request—including protocol-specific APY, TVL, volume, history, or timeframe analysis—to okx-dapp-discovery. Generic cross-protocol yield/APY/TVL and V3-liquidity analysis stays here. Route token search/price/chart requests to okx-dex-market, and spot swaps, wallet balances, login, contract calls, or transaction broadcasts to okx-agentic-wallet.

Chain Name Support

The CLI resolves chain names automatically (for example, ethereum → 1, bsc → 56, solana → 501). Use the Chain Support table in portfolio.md for the DeFi-specific aliases.

Security

Address Resolution

When the user does NOT provide a wallet address, resolve it automatically from the Agentic Wallet before running any defi command:

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 address

Rules:

  • If the user provides an explicit address, use it directly — skip this step
  • If wallet is not logged in, ask the user to log in first (→ okx-agentic-wallet) or provide an address manually
  • If the user says "check all accounts" or "all wallets", use wallet balance --all to get all account IDs, then wallet switch <id> + wallet addresses for each account
  • Always confirm the resolved address with the user before proceeding if the account has multiple addresses of the same type

Address-Chain Compatibility

The --address and chain parameters must be compatible. EVM addresses (0x…) can only query EVM chains; Solana addresses (base58) can only query solana. Never mix them — the API will return error 84019 (Address format error).

  • 0x… address → only pass EVM chains: ethereum,bsc,polygon,arbitrum,base,xlayer,avalanche,optimism,fantom,linea,scroll,zksync
  • base58 address → only pass solana
  • Sui address → only pass sui; Tron address (T…) → only pass tron; TON address → only pass ton
  • If the user wants positions across both EVM and Solana, make two separate calls with the respective addresses

Global Notes

  • The wallet address parameter for ALL defi commands is --address
  • defi positions uses --chains (plural, comma-separated); defi position-detail uses --chain (singular)
  • Before reporting completion, verify the selected command succeeded, apply the output format and safety checks from its routed reference, and report any partial or failed on-chain step explicitly.

Mehr Skills von okx

okx-agent-identity
okx
ERC-8004 On-Chain Agent-Identität auf XLayer: Agenten registrieren / erstellen / aktualisieren / aktivieren / deaktivieren / suchen; Bewertungen anzeigen; Agent-Dienste auflisten; Avatar festlegen. Rollen: Benutzer (User / User Agent / Buyer / Client / 用户 / 买家 / 买方), ASP (ASP / Provider / Provider Agent / Seller / Merchant / 提供者 / 商家 / 服务提供商 / 卖家 / 卖方), Evaluator (Evaluator / Evaluator Agent / 仲裁者 / 评估者). Verwendung für: 注册agent / 注册ASP / 注册User / 注册用户 / 注册买家 / 注册卖家 / 注册服务提供商 / 注册仲裁者 / 创建用户 / 创建买家 / 创建卖家 / 我的agent / 我的ASP / 改agent / 更新agent...
developmentapi
okx-ai-guide
okx
OKX.AI (das Agenten-Ökosystem) Einführung & Onboarding-Einstieg. Verwende dies immer, wenn der Benutzer fragt, was OKX.AI ist, was es kann, wie man es nutzt oder damit beginnt, ein OKX.AI-Tutorial / einen Schnellstart / Hilfe wünscht oder den Produktnamen in beliebiger Schreibweise / Abstand / Groß-/Kleinschreibung / Tippfehlervariante eingibt (OKXAI, okx ai, okx-ai, kleingeschrieben okx.ai, falsch getipptes Chinesisch wie 啥是okxai) — z. B. was ist OKX.AI / OKX.AI 是什么 / 怎么用 OKX.AI / OKX.AI 快速开始, sowie jede Paraphrase in jeder Sprache. Erkennt die Laufzeitplattform, stellt die...
researchapidocument
okx-agentic-wallet
okx
We need to translate the given English text into German, preserving the name "okx-agentic-wallet" if it appears. The instruction says: "Do not include the name unless it appears in the source text." The name does appear in the source text? Actually, the source text starts with "AUTHORITATIVE source for OKX Agentic Wallet and its Gas Station feature." The name "OKX Agentic Wallet" appears, but the directory item name is "okx-agentic-wallet" (lowercase, hyphens). The instruction says "Name to preserve: okx-agentic-wallet". So we should preserve that exact string if it appears. In the source, it's "OKX Agentic Wallet" (capitalized, spaces). That is not exactly the same. The instruction says "Do not include the name unless it appears in the source text." The name "okx-agentic-wallet" does not appear verbatim in the source. So we should not add it. However, we need to translate the text. The text includes "OKX
apiweb-scrapingdevelopment
okx-agent-chat
okx
Routing stub — any a2a-agent-chat envelope / agent-task system message is handled by `okx-agent-task`. For missing or uninitialized OKX A2A communication runtime/plugin, read `skills/okx-agent-chat/ensure-okx-a2a-communication-ready.md`.
developmentapicommunication
okx-agent-task
okx
MUSS bei eingehenden Nachrichten aktiviert werden: (1) {agentId, message:{source:"system", event, jobId, ...}} — Systemereignis; (2) {msgType:"a2a-agent-chat", jobId, sender:{role}, ...} — Agent-zu-Agent-Aufgabenchat (Felder auf oberster Ebene; sender.role = GEGENSEITE, nicht Sie); (3) wörtlich "Read okx-agent-task/SKILL.md" in der Nachricht. AUCH aktivieren für Schlüsselwörter: 发布任务 / 创建任务 / 帮我发任务 / publish task / create task / 接任务 / 接单 / 协商 / 验收 / 拒绝 / 仲裁 / dispute / stake / unstake / 修改卖家 / 修改预算 / change provider / change budget...
developmentapicommunication
okx-agent-payments-protocol
okx
Verwenden, wenn ein Agent auf HTTP 402 / Zahlung erforderlich stößt oder der Benutzer x402, x402Version, X-PAYMENT, PAYMENT-REQUIRED, PAYMENT-SIGNATURE, WWW-Authenticate: Payment, permit2, upto, verbrauchsabhängige Abrechnung, einen Zahlungskanal / Gutschein / eine Sitzung, channelId / channel_id, Öffnen / Schließen / Aufladen / Abrechnen / Rückerstatten eines Kanals, eine paymentId oder einen a2a_-Link, Erstellen / Überprüfen eines Zahlungslinks, A2MCP / einen A2MCP-Endpunkt oder Senden einer Anfrage an / Aufrufen eines Agent-Endpunkts mit einem konkreten Endpunkt erwähnt...
okx-security
okx
Nutze diesen Skill für Sicherheitsüberprüfungen: Transaktionssicherheit prüfen, ist diese Transaktion sicher, Vorausführungsprüfung, Sicherheitsscan, Token-Risiko-Scan, Honeypot-Erkennung, DApp/URL-Phishing-Erkennung, Nachrichtensignatur-Sicherheit, Erkennung bösartiger Transaktionen, Genehmigungssicherheitsprüfungen, Token-Genehmigungsverwaltung. Auslöser: 'ist dieser Token sicher', 'Token-Sicherheit prüfen', 'Honeypot-Check', 'diese Tx scannen', 'diese Swap-Tx scannen', 'Tx-Risikoprüfung', 'ist diese URL ein Betrug', 'prüfen, ob diese DApp sicher ist', 'Phishing...
okx-task-watch
okx
监听任务进展 / 帮我盯着任务 / 任务有动静告诉我 / 历史消息 / 未读消息 / 未决策 / 待决策 / 继续监听 / task watch / user watch / monitor task progress / catch me up on tasks / outstanding decisions — OKX A2A user-session task-notification monitor: live long-poll via `okx-a2a user watch` (also drains backlog of past/missed/unread events on entry) plus un-replied decision_request lister via `okx-a2a user outdated-list`. Not for wallet / gas / task-list / status queries.
developmentapiproductivity