okx-cex-earn

Manages OKX Simple Earn, Flash Earn, On-chain Earn, Dual Investment, and AutoEarn via the okx CLI.

Updated Aug 21, 2026
One-click install
npx skills add https://github.com/nickthelegend/xorr-monorepo --skill okx-cex-earn-nickthelegend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-cex-earn
Source: https://github.com/nickthelegend/xorr-monorepo/tree/main/.agents/skills/okx-cex-earn
Command: npx skills add https://github.com/nickthelegend/xorr-monorepo --skill okx-cex-earn-nickthelegend

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @okx_ai/okx-trade-cli, and includes references (resource) components.

What problem does it solve? Managing OKX earn products requires navigating multiple product types—flexible savings, fixed-term deposits, on-chain staking, dual investment structured products, and auto-earn—each with different commands, confirmation flows, and state semantics. This Skill provides a complete operational guide for querying balances, browsing products, subscribing, redeeming, and monitoring earn positions through the okx CLI with proper safety checks. ## Core Features & Use Cases - Simple Earn (Flexible & Fixed): Query balances and lending rates, subscribe or redeem flexible savings, browse fixed-term products with APR and quota, and manage fixed-term orders with two-step preview-then-confirm flows. - Dual Investment (DCD / 双币赢): Browse CALL (高卖) and PUT (低买) products with live spot price comparison, execute atomic quote-and-buy subscriptions, and handle two-phase early redemption. - On-chain Earn & AutoEarn: Subscribe to staking/DeFi products with mandatory risk disclaimers, manage order lifecycle (purchase, redeem, cancel), and enable/disable auto-earn with 24-hour lock warnings. - Use Case: A user asks "帮我把资金账户里的 1000 USDT 申购赚币" — the Skill checks the funding balance, fetches the current lending rate, presents a confirmation summary, executes the purchase, and verifies the updated position. ## Quick Start Ask the assistant to check your OKX earn balances and show current Simple Earn rates for USDT using the okx CLI.

Frequently Asked Questions about okx-cex-earn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I subscribe to OKX Simple Earn with the okx CLI?

Run okx earn savings purchase --ccy USDT --amt 1000 after checking your funding balance and current lending rate. The Skill requires a confirmation summary showing the actual yield (lendingRate) before executing, then verifies the position with earn savings balance.

How do I browse OKX Dual Investment (双币赢) products?

Use okx earn dcd products --baseCcy BTC --quoteCcy USDT --optType C for high-sell (CALL) or P for low-buy (PUT) products. The Skill fetches spot price and account balance in parallel before rendering the product table with strike distance and reference APR.

Does OKX Earn support demo or simulated trading mode?

No, OKX Earn does not support demo mode. All earn commands run in live mode only — API-key users pass --profile with their live profile, while OAuth users need no flag since live is the default.

Why can't I disable AutoEarn right after enabling it?

OKX enforces a 24-hour restriction: auto-earn cannot be disabled within 24 hours of enabling it. If you hit this error, the Skill parses the unlock timestamp from the error message and tells you when to retry.

Can I redeem a Simple Earn Fixed order before maturity?

Only orders in pending state can be redeemed early with a full principal refund and no interest. Once an order reaches earning state, funds are locked until maturity and early redemption is not allowed.

What should I do when a DCD write operation returns a 504 error?

Never retry a DCD write operation after a 504 gateway timeout, since the server may have executed it. Instead, query earn dcd orders first to verify whether the order was actually created before taking further action.