π¦ ClawHub
pionex-bot
by @pibrandon
Use when the user asks to create, query, list, adjust, reduce, or cancel Pionex bot orders (Futures Grid, Spot Grid, Smart Copy). Includes listing/paginating...
π‘ Examples
# --- Futures Grid ---List running futures grid bot orders
pionex-trade-cli bot order_list --status running --bu-order-types futures_gridList all running bot orders across all types
pionex-trade-cli bot order_list --status runningFilter by symbol
pionex-trade-cli bot order_list --base BTC --quote USDTPaginate to next page
pionex-trade-cli bot order_list --status finished --page-token Read one bot status
pionex-trade-cli bot futures_grid get --bu-order-id 123456789Validate futures grid params before creating
pionex-trade-cli bot futures_grid check_params \
--base BTC \
--quote USDT \
--bu-order-data-json '{"top":"110000","bottom":"90000","row":100,"grid_type":"arithmetic","trend":"long","leverage":5,"extraMargin":"0","quoteInvestment":"100"}'Dry-run create
pionex-trade-cli bot futures_grid create \
--base BTC \
--quote USDT \
--bu-order-data-json '{"top":"110000","bottom":"90000","row":100,"grid_type":"arithmetic","trend":"long","leverage":5,"extraMargin":"0","quoteInvestment":"100"}' \
--dry-runDry-run adjust
pionex-trade-cli bot futures_grid adjust_params --body-json '{"buOrderId":"123456789","type":"invest_in","quoteInvestment":50,"extraMargin":false}' --dry-run--- Spot Grid ---
Get AI-recommended parameters for BTC/USDT spot grid
pionex-trade-cli bot spot_grid get_ai_strategy --base BTC --quote USDTValidate spot grid params before creating
pionex-trade-cli bot spot_grid check_params \
--base BTC \
--quote USDT \
--bu-order-data-json '{"top":"110000","bottom":"90000","row":50,"grid_type":"arithmetic","quoteInvestment":"200"}'Dry-run create spot grid (using AI-recommended or user-specified params)
pionex-trade-cli bot spot_grid create \
--base BTC \
--quote USDT \
--bu-order-data-json '{"top":"110000","bottom":"90000","row":50,"grid_type":"arithmetic","quoteInvestment":"200"}' \
--dry-runQuery spot grid bot status
pionex-trade-cli bot spot_grid get --bu-order-id 987654321Add investment to running spot grid bot
pionex-trade-cli bot spot_grid invest_in \
--body-json '{"buOrderId":"987654321","quoteInvestment":"100"}' \
--dry-runExtract accumulated grid profits
pionex-trade-cli bot spot_grid profit \
--body-json '{"buOrderId":"987654321"}' \
--dry-runCancel spot grid bot
pionex-trade-cli bot spot_grid cancel --bu-order-id 987654321 --dry-runList running spot grid bots
pionex-trade-cli bot order_list --status running --bu-order-types spot_grid--- Smart Copy ---
Step 1: Get investment range for a signal (quote-investment 0 = range query only)
pionex-trade-cli bot smart_copy check_params \
--base BTC \
--quote USDT \
--leverage 5 \
--quote-investment 0Step 1b: Validate a specific investment amount
pionex-trade-cli bot smart_copy check_params \
--base BTC \
--quote USDT \
--leverage 5 \
--quote-investment 100Step 2: Dry-run create (single signal, leverage 5)
pionex-trade-cli bot smart_copy create \
--base BTC \
--quote USDT \
--bu-order-data-json '{"quote_total_investment":"100","portfolio":[{"base":"BTC","signal_type":"","leverage":5}]}' \
--dry-runDry-run create with stop-loss/take-profit and multi-signal portfolio
pionex-trade-cli bot smart_copy create \
--base BTC \
--quote USDT \
--bu-order-data-json '{"quote_total_investment":"200","portfolio":[{"base":"BTC","signal_type":"","leverage":5,"percent":"0.5","profit_stop_ratio":"0.3","loss_stop_ratio":"0.1"},{"base":"ETH","signal_type":"","leverage":3,"percent":"0.5"}]}' \
--dry-runQuery smart copy bot status
pionex-trade-cli bot smart_copy get --bu-order-id 111222333Cancel smart copy bot
pionex-trade-cli bot smart_copy cancel \
--bu-order-id 111222333 \
--dry-runCancel and convert holdings into Earn products
pionex-trade-cli bot smart_copy cancel \
--bu-order-id 111222333 \
--convert-into-earn-coin \
--dry-runPush a trading signal to the Pionex signal platform (signal provider role)
pionex-trade-cli bot signal listener \
--signal-type \
--signal-param '{}' \
--base BTC \
--quote USDT \
--time "2026-04-15T10:00:00Z" \
--price 85000 \
--action buy \
--position-size 1 \
--contracts 1 \
--dry-runList running smart copy bots
pionex-trade-cli bot order_list --status running --bu-order-types smart_copy
TERMINAL
clawhub install pionex-bot