Manages Pionex Dual Investment products: browse symbols/open products, check yield rates/index prices, query balances/investment history, place/revoke investments, and collect settled earnings via pionex-trade-cli.
Ships in pionex-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Dual Investment products on Pionex: browse products, check yields, invest, revoke, and collect settled earnings via pionex-trade-cli. Public queries require no credentials; write operations require API credentials with Earn permission.
Beta notice: The Dual Investment API is currently in Beta. Contact [email protected] to request access.
Product ID format: {BASE}-{QUOTE}-{YYMMDD}-{STRIKE}-{C|P}-{CURRENCY}, where C = DUAL_BASE and P = DUAL_CURRENCY.
npm install -g @pionex/pionex-ai-kit
pionex-ai-kit onboard
Ensure your API key has the required permissions:
balances, get_invests, recordsinvest, revoke_invest, collectpionex-trade-cli earn dual symbols
| # | Command | Flags | Type |
|---|---|---|---|
| 1 | pionex-trade-cli earn dual symbols | [--base <currency>] | READ |
| 2 | pionex-trade-cli earn dual open_products | --base <c> --quote <c> --type DUAL_BASE|DUAL_CURRENCY [--currency <c>] | READ |
| 3 | pionex-trade-cli earn dual prices | --base <c> --quote <c> --product-ids <id1,id2,...> | READ |
| 4 | pionex-trade-cli earn dual index | --base <c> --quote <c> | READ |
| 5 | pionex-trade-cli earn dual delivery_prices | --base <c> [--quote <c>] [--start-time <ms>] [--end-time <ms>] | READ |
| # | Command | Flags | Type |
|---|---|---|---|
| 6 | pionex-trade-cli earn dual balances | [--merge] | READ |
| 7 | pionex-trade-cli earn dual get_invests | [--base <c>] --client-dual-ids <id1,id2,...> | READ |
| 8 | pionex-trade-cli earn dual records | --base <c> --end-time <ms> [--quote <c>] [--currency <c>] [--start-time <ms>] [--limit <n>] | READ |
| # | Command | Flags | Type |
|---|---|---|---|
| 9 | pionex-trade-cli earn dual invest | --base <c> --product-id <id> --profit <rate> (--base-amount <n> | --currency-amount <n>) [--client-dual-id <id>] [--dry-run] | WRITE |
| 10 | pionex-trade-cli earn dual revoke_invest | --base <c> --product-id <id> --client-dual-id <id> [--dry-run] | WRITE |
| 11 | pionex-trade-cli earn dual collect | --base <c> --client-dual-id <id> --product-id <id> [--dry-run] | WRITE |
The correct --quote value depends on the base currency:
| Base currency | --quote | --currency options |
|---|---|---|
BTC, ETH | USDXO | USDT or USDC |
| All other bases (XRP, SOL, LRC, etc.) | USDT | USDT |
Incorrect --quote will return DUAL_PARAMETER_ERROR: invalid base quote.
| Type | Invest in | Strike hit at expiry | Strike NOT hit |
|---|---|---|---|
DUAL_BASE (C in product ID) | Base currency (e.g. BTC) | Converted to investment currency + yield | Returned in base + yield |
DUAL_CURRENCY (P in product ID) | Investment currency (e.g. USDT) | Converted to base currency + yield | Returned in investment currency + yield |
profit value — Always call earn dual prices immediately before earn dual invest. The API rejects mismatched profit values. Steps 2 and 3 of the invest workflow must be consecutive.--profit is required for invest — There is no default; the exact value returned by prices must be passed.--base-amount and --currency-amount — They are mutually exclusive; use one or the other.invest, revoke_invest, and collect, always run with --dry-run, show output to user, then confirm before running without it.--client-dual-id — Require the user to provide it, or propose one and get confirmation. It acts as an idempotency key.earn dual get_invests to verify state first: revoke_invest only works on pending orders; collect only works on settled orders.--product-id, strike, or expiry — These must come from the API (open_products or get_invests), never assumed.# DUAL_BASE: invest in BTC, payout converted if price rises above strike
pionex-trade-cli earn dual open_products \
--base BTC \
--quote USDXO \
--type DUAL_BASE \
--currency USDT
# DUAL_CURRENCY: invest in USDT, buy BTC if price drops below strike
pionex-trade-cli earn dual open_products \
--base BTC \
--quote USDXO \
--type DUAL_CURRENCY \
--currency USDT
Choose a productId from the response (e.g. BTC-USDXO-260402-68000-P-USDT).
pionex-trade-cli earn dual prices \
--base BTC \
--quote USDXO \
--product-ids BTC-USDXO-260402-68000-P-USDT
Check canInvest: true and record the profit value exactly as returned (e.g. "0.0039").
# Dry-run first — shows the request payload without executing
pionex-trade-cli earn dual invest \
--base BTC \
--product-id BTC-USDXO-260402-68000-P-USDT \
--client-dual-id my-order-001 \
--currency-amount 100 \
--profit 0.0039 \
--dry-run
# After user confirmation, submit (same command without --dry-run)
pionex-trade-cli earn dual invest \
--base BTC \
--product-id BTC-USDXO-260402-68000-P-USDT \
--client-dual-id my-order-001 \
--currency-amount 100 \
--profit 0.0039
Do not call other commands between Steps 2 and 3. The
profitvalue has a short validity window.
# All supported pairs
pionex-trade-cli earn dual symbols
# BTC pairs only
pionex-trade-cli earn dual symbols --base BTC
# Open DUAL_BASE products for ETH (invest ETH, convert to USDT if price rises)
pionex-trade-cli earn dual open_products \
--base ETH --quote USDXO --type DUAL_BASE --currency USDT
# Open products for XRP (non-BTC/ETH — use USDT quote)
pionex-trade-cli earn dual open_products \
--base XRP --quote USDT --type DUAL_BASE
# Current yield for a specific product
pionex-trade-cli earn dual prices \
--base BTC --quote USDXO \
--product-ids BTC-USDXO-260402-68000-P-USDT
# Multiple product IDs (comma-separated, no spaces)
pionex-trade-cli earn dual prices \
--base ETH --quote USDXO \
--product-ids ETH-USDXO-260410-3000-C-USDT,ETH-USDXO-260410-2900-C-USDT
# Real-time index price
pionex-trade-cli earn dual index --base BTC --quote USDXO
# Historical delivery prices
pionex-trade-cli earn dual delivery_prices --base BTC --quote USDXO
# Balances
pionex-trade-cli earn dual balances
# Merged balances (same coin across different bases)
pionex-trade-cli earn dual balances --merge
# Batch query by client order IDs (comma-separated)
pionex-trade-cli earn dual get_invests \
--base BTC \
--client-dual-ids my-order-001,my-order-002
# Investment history (--base and --end-time required)
pionex-trade-cli earn dual records \
--base BTC \
--quote USDXO \
--end-time 1775027817297 \
--limit 20
# 1. Verify order is still pending
pionex-trade-cli earn dual get_invests --base BTC --client-dual-ids my-order-001
# 2. Dry-run
pionex-trade-cli earn dual revoke_invest \
--base BTC \
--product-id BTC-USDXO-260402-68000-P-USDT \
--client-dual-id my-order-001 \
--dry-run
# 3. Execute after user confirmation
pionex-trade-cli earn dual revoke_invest \
--base BTC \
--product-id BTC-USDXO-260402-68000-P-USDT \
--client-dual-id my-order-001
# 1. Verify order is settled
pionex-trade-cli earn dual get_invests --base BTC --client-dual-ids my-order-001
# 2. Dry-run
pionex-trade-cli earn dual collect \
--base BTC \
--client-dual-id my-order-001 \
--product-id BTC-USDXO-260402-68000-P-USDT \
--dry-run
# 3. Execute after user confirmation
pionex-trade-cli earn dual collect \
--base BTC \
--client-dual-id my-order-001 \
--product-id BTC-USDXO-260402-68000-P-USDT
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/financial-analysis-compsComparable company analysis using SEC EDGAR financial data. Use when asked to: compare multiple stocks; analyze valuation multiples for a peer group; benchmark margins, growth, or valuation across companies; find the cheapest or most expensive stock in a group; see how a company stacks up against peers. Triggers: "compare AAPL vs MSFT vs GOOGL", "tech sector comps", "which mega-cap has best margins", "peer valuation analysis", "compare these stocks", "how does NVDA compare to AMD". Note: For discovering/screening stocks by theme or criteria, use stock-screening instead.
/financial-analysis-dcfDCF (Discounted Cash Flow) valuation for US stocks using SEC EDGAR financials. Use when asked to: estimate intrinsic value or fair value of a US stock; determine if a stock is overvalued or undervalued; run a discounted cash flow analysis; calculate upside/downside from current price. Triggers: "what is AAPL worth", "DCF MSFT", "is NVDA overvalued", "intrinsic value of GOOGL", "fair value Tesla".
/financial-analysis-earningsQuarterly earnings analysis for US stocks using SEC EDGAR financial data. Use when asked to: analyze a company's latest quarterly results; review Q1/Q2/Q3/Q4 earnings; check if a company beat or missed estimates; understand revenue, margin, or EPS trends; get a beat/miss breakdown; review guidance or management commentary after an earnings release. Triggers: "analyze AAPL earnings", "did MSFT beat estimates", "NVDA Q4 results", "earnings update for GOOGL", "how did Tesla do last quarter".
Other plugins' skills for the same job
/pionex-skills:pionex-earn-dualfrom pionex-skills
pionex-skills@fin-skills is listed by howard-lynn-ye/fin-rsi — review the source before installing
npx claudepluginhub howard-lynn-ye/fin-rsi --plugin pionex-skills