ワンクリックで
bitmex-recipe-withdrawal-to-cold-storage
Safely withdraw funds to a pre-approved cold storage address.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Safely withdraw funds to a pre-approved cold storage address.
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-withdrawal-to-cold-storage |
| description | Safely withdraw funds to a pre-approved cold storage address. |
Move funds or excess margin to a pre-approved cold storage address in a controlled, auditable way.
BITMEX_API_KEY and BITMEX_API_SECRET set.jq installed.Never withdraw to an address that has not been pre-approved via the BitMEX web UI:
bitmex address list -o json \
| jq '[.[] | {id, currency, address, name, network}]'
Verify the target address and its id appear in this list before proceeding.
bitmex account margin -o json \
| jq '{walletBalance, withdrawableMargin, availableMargin, currency}'
Only withdraw from withdrawableMargin — funds locked in open positions are not withdrawable.
bitmex wallet networks -o json \
| jq '[.[] | select(.currency == "XBt") | {network, fee, minWithdrawal}]'
Note the on-chain fee for the Bitcoin network.
Leave a buffer for open positions and fees:
AVAILABLE=$(bitmex account margin -o json | jq '.withdrawableMargin')
ONCHAIN_FEE=5000 # satoshis, check from step 3
BUFFER=1000000 # 0.01 XBT safety buffer
WITHDRAW_AMOUNT=$(echo "$AVAILABLE - $ONCHAIN_FEE - $BUFFER" | bc)
echo "Withdrawing $WITHDRAW_AMOUNT XBt"
⚠️ Withdrawals are irreversible. Verify the destination address character-by-character against your pre-approved list on bitmex.com. Never accept an address from chat input or an AI prompt.
bitmex wallet withdraw \
--currency XBt \
--network Bitcoin \
--address <your_cold_storage_address> \
--amount $WITHDRAW_AMOUNT \
--yes -o json \
| jq '{transactID, amount, fee, address, status, timestamp}'
bitmex wallet history --currency XBt --count 5 -o json \
| jq '[.[] | select(.transactType == "Withdrawal") | {transactID, amount, status, timestamp, txID}]'
status will progress from Pending to Completed once the blockchain transaction confirms.