بنقرة واحدة
bitmex-recipe-launch-grid-bot
Deploy a grid trading bot with testnet validation.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Deploy a grid trading bot with testnet validation.
التثبيت باستخدام 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-launch-grid-bot |
| description | Deploy a grid trading bot with testnet validation. |
Place a ladder of limit orders above and below the current price. Buy orders fill on dips; sell orders fill on rallies. Each filled buy is replaced with a sell one grid level higher, and vice versa.
Always validate on testnet first: prefix commands with bitmex --testnet until the strategy behaves as expected.
BITMEX_API_KEY and BITMEX_API_SECRET set.jq and bc installed.SYMBOL, GRID_LEVELS (e.g. 5), GRID_SPACING_PCT (e.g. 0.5), QTY_PER_LEVEL.MID=$(bitmex --testnet market instrument --symbol XBTUSD -o json | jq '.[0].lastPrice')
for i in 1 2 3 4 5; do
BUY_PRICE=$(echo "scale=0; $MID * (1 - $i * 0.005) / 1" | bc)
SELL_PRICE=$(echo "scale=0; $MID * (1 + $i * 0.005) / 1" | bc)
bitmex --testnet order buy XBTUSD 10 --order-type Limit --price $BUY_PRICE --yes -o json \
| jq '{side: "Buy", price, orderID}'
bitmex --testnet order sell XBTUSD 10 --order-type Limit --price $SELL_PRICE --yes -o json \
| jq '{side: "Sell", price, orderID}'
done
Verify the full grid appears in:
bitmex --testnet order list -o json | jq '[.[] | {side, price, orderQty, ordStatus}]'
Also confirm the order book:
bitmex --testnet market orderbook XBTUSD --depth 10 -o json
Replace --testnet with live credentials and repeat the loop above.
bitmex ws --auth execution -o json | jq 'select(.data[].ordStatus == "Filled") | .data[]
| {symbol, side, price, orderQty}'
When a buy fills at level N, place a new sell at level N+1. When a sell fills, place a new buy at level N-1.
Cancel the entire grid cleanly:
bitmex order cancel-all --yes -o json
QTY_PER_LEVEL equal to 1% of available margin per level.