一键导入
bitmex-recipe-staking-yield-compare
Compare staking yields across instruments to find the best rate.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compare staking yields across instruments to find the best rate.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Price, funding, liquidation, and balance alerts using polling and WebSocket on bitmex-cli.
Autonomy progression for bitmex-cli agents: from read-only market data to autonomous fund management.
Delta-neutral basis trading between BitMEX perpetuals and fixed-date futures: entry, monitoring, and exit.
Dollar cost averaging on bitmex-cli: testnet-first, fixed qty per interval, limit orders, and position cap enforcement.
Error category handling, duplicate order prevention, retry logic, and partial fill management for bitmex-cli.
Minimize trading fees on bitmex-cli: maker vs taker, post-only orders, commission tiers, and fee audit.
| name | bitmex-recipe-staking-yield-compare |
| description | Compare staking yields across instruments to find the best rate. |
Survey available BitMEX staking instruments, compare APY across assets and tiers, then rebalance staked positions toward the highest-yielding options.
BITMEX_API_KEY and BITMEX_API_SECRET set.jq installed.# Actual fields: symbol, currency, apyBps, minSizePerClient, maxSizePerClient, status, expiryTime
bitmex staking instruments -o json \
| jq '[.[] | {symbol, currency, apyBps, apyPct: (.apyBps / 100), minSizePerClient, status}]'
apyBps is basis points (100 bps = 1%). status is "ACTIVE" or "INACTIVE".
Note: bitmex staking tiers returns 404 on mainnet. Use apyBps from instruments instead.
bitmex staking instruments -o json \
| jq '[.[] | {symbol, apyBps, apyPct: (.apyBps / 100)}]'
# wallet balance is a single object (not an array)
BALANCE=$(bitmex wallet balance -o json | jq '.amount')
bitmex staking instruments -o json \
| jq --argjson bal "$BALANCE" \
'[.[] | select(.minSizePerClient <= $bal) | {symbol, apyBps, apyPct: (.apyBps / 100), minSizePerClient}]
| sort_by(.apyBps) | reverse | .[0]'
bitmex staking status -o json \
| jq '[.[] | {symbol, stakedAmount}]'
bitmex staking instruments -o json \
| jq '[.[] | {symbol, apyBps, apyPct: (.apyBps / 100)}] | sort_by(.apyBps) | reverse | .[0:3]'
stake subcommand exists — only unstake)Note: bitmex staking pending-unstake returns an API error on mainnet (the endpoint requires a status param the CLI doesn't pass). Skip or ignore errors from that step.
# Check pending unstakes (may return API error on mainnet)
bitmex staking pending-unstake -o json
# Unstake (positional args: SYMBOL AMOUNT)
bitmex staking unstake <low_yield_symbol> <qty> --yes -o json
lockPeriodDays before unstaking: early withdrawal may forfeit accrued yield.