Places, cancels, and checks spot orders on Pionex via pionex-trade-cli. Covers market/limit orders, open orders, and fills. Requires API credentials.
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.
Spot order placement and management on Pionex via the pionex-trade-cli CLI. Requires API credentials in ~/.pionex/config.toml (run pionex-ai-kit onboard first).
Security: Pionex API Docs recommend IP whitelisting and never sharing your API Key/Secret.
npm install -g @pionex/pionex-ai-kit
pionex-ai-kit onboard
pionex-trade-cli account balance
pionex-trade-cli account balance here when checking before order)| Command | Type | Description |
|---|---|---|
pionex-trade-cli account balance | READ | All spot balances (filter by currency from JSON if needed) |
pionex-trade-cli orders new --symbol <s> --side BUY|SELL --type MARKET|LIMIT [--amount | --size] [--price] [--dry-run] | WRITE | Create order. MARKET buy: use --amount (quote). MARKET sell / LIMIT: use --size (base). LIMIT: add --price |
pionex-trade-cli orders get --symbol <s> --order-id <id> | READ | Get one order by ID |
pionex-trade-cli orders open --symbol <s> | READ | List open orders for symbol |
pionex-trade-cli orders all --symbol <s> [--limit <n>] | READ | Order history (filled/cancelled) |
pionex-trade-cli orders fills --symbol <s> [--startTime] [--endTime] | READ | Fills (executed trades) |
pionex-trade-cli orders fills_by_order_id --symbol <s> --order-id <id> | READ | Fills for one specific order |
pionex-trade-cli orders cancel --symbol <s> --order-id <id> [--dry-run] | WRITE | Cancel one order |
pionex-trade-cli orders cancel_all --symbol <s> [--dry-run] | WRITE | Cancel all open orders for symbol |
Symbol info (min size, precision) before placing orders: use pionex-market → pionex-trade-cli market symbols --symbols BTC_USDT.
Use pionex-trade when the user wants to:
Do not use for: only checking prices or order book (use pionex-market); only checking balance (pionex-portfolio, or pionex-trade-cli account balance as part of a trade flow).
BTC_USDT), side (BUY/SELL), type (MARKET/LIMIT), and amount or size.--dry-run first when supported, show the user what would be done, then ask for confirmation before running without --dry-run.When the user asks to buy with a quote amount (e.g. “buy BTC with 1000 USDT”):
Check balance
pionex-trade-cli account balance
From the JSON result, read the available balance for the quote asset (e.g. USDT). There is no --asset flag; the command returns all currencies.
Compare to requested amount
Example
pionex-trade-cli account balance → if USDT available is 600, reply: “Your available USDT is 600, less than 1000. Should I place a market buy for 600 USDT instead? I’ll use --dry-run first.”pionex-trade-cli orders new --symbol BTC_USDT --side BUY --type MARKET --amount 600 (and optionally run with --dry-run first, then without after confirm).If the API returns an error about minimum order size or notional (e.g. minimum notional 10 USDT):
Get symbol rules
pionex-trade-cli market symbols --symbols BTC_USDT
Use the result to see min size, min notional, step size.
Suggest a valid size — Round to the required precision and ensure notional ≥ min notional. Explain to the user: original request, exchange minimum, and suggested size.
Confirm then retry — After user agrees, place the order again (prefer --dry-run first).
Market buy (quote amount)
pionex-trade-cli orders new --symbol BTC_USDT --side BUY --type MARKET --amount 100
Market sell (base quantity)
pionex-trade-cli orders new --symbol BTC_USDT --side SELL --type MARKET --size 0.01
Limit order
pionex-trade-cli orders new --symbol BTC_USDT --side BUY --type LIMIT --price 50000 --size 0.01
Cancel one
pionex-trade-cli orders cancel --symbol BTC_USDT --order-id 123456
Cancel all for symbol
pionex-trade-cli orders cancel_all --symbol BTC_USDT
Before running, list what will be cancelled: pionex-trade-cli orders open --symbol BTC_USDT, then confirm with the user.
pionex-trade-cli orders cancel_all --symbol <s>, run pionex-trade-cli orders open --symbol <s> and show the user how many orders and for which symbol.--dry-run if applicable.pionex-trade-cli CLI.--dry-run and user confirmation for writes. Never increase risk without the user’s explicit agreement.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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".
/pionex-skills:pionex-tradefrom 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