You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I don't have a BitMEX account yet, walk me through:
@@ -33,8 +33,9 @@ If I don't have a BitMEX account yet, walk me through:
33
33
## API Key
34
34
Guide me to https://www.bitmex.com/app/apiKeys to create an API key with
35
35
"Order" and "Account" permissions (add "Withdraw" only if I need withdrawals).
36
-
Ask me for the key and secret, then run:
37
-
bitmex auth set --api-key <KEY> --api-secret <SECRET>
36
+
Ask me to choose:
37
+
- Share my key and secret with you, and run: bitmex auth set --api-key <KEY> --api-secret <SECRET>
38
+
- Or keep keys private: ask me to open a terminal and run `bitmex auth add` myself (do NOT run this for me — it requires an interactive terminal)
38
39
39
40
## Verify
40
41
Run: bitmex account me -o json
@@ -67,10 +68,10 @@ And suggest starting with --testnet to practice safely before using real funds.
67
68
### Install script (recommended)
68
69
69
70
```bash
70
-
curl -sSfL https://raw.githubusercontent.com/BitMEX/bitmex-cli/master/install.sh | sh
71
+
tmpfile="$(mktemp)"&&curl -sSfL https://raw.githubusercontent.com/BitMEX/bitmex-cli/master/install.sh -o "$tmpfile"&& sh "$tmpfile"
71
72
```
72
73
73
-
Downloads a pre-built binary for your platform (macOS/Linux, x86_64/arm64), verifies the SHA256 checksum, and installs to `/usr/local/bin`. No Rust or build tools needed. Requires `curl`, `tar`, and `sha256sum` (or `shasum`). May prompt for `sudo` if `/usr/local/bin` is not writable.
74
+
Downloads a pre-built binary for your platform (macOS/Linux, x86_64/arm64), verifies the SHA256 checksum, and installs to `~/.local/bin`. No Rust or build tools needed. No `sudo` required. Requires `curl`, `tar`, and `sha256sum` (or `shasum`). Override the install location with `BITMEX_INSTALL_DIR`.
|[recipe-start-dca-bot](./recipe-start-dca-bot/SKILL.md)| Set up and run a DCA bot from testnet validation to live. |
92
-
|[recipe-launch-grid-bot](./recipe-launch-grid-bot/SKILL.md)| Deploy a grid trading bot with testnet validation. |
93
-
|[recipe-trailing-stop-runner](./recipe-trailing-stop-runner/SKILL.md)| Ride a trend with a trailing stop that locks in profits on reversal. |
94
-
|[recipe-basis-trade-entry](./recipe-basis-trade-entry/SKILL.md)| Enter a perp-futures basis trade when premium exceeds threshold. |
95
-
|[recipe-futures-hedge-spot](./recipe-futures-hedge-spot/SKILL.md)| Hedge a long position with a short perpetual. |
96
-
|[recipe-funding-rate-scan](./recipe-funding-rate-scan/SKILL.md)| Scan perpetual contracts for funding rate carry opportunities. |
97
-
|[recipe-testnet-strategy-backtest](./recipe-testnet-strategy-backtest/SKILL.md)| Validate a strategy across multiple testnet sessions before going live. |
91
+
|[bitmex-recipe-start-dca-bot](./bitmex-recipe-start-dca-bot/SKILL.md)| Set up and run a DCA bot from testnet validation to live. |
92
+
|[bitmex-recipe-launch-grid-bot](./bitmex-recipe-launch-grid-bot/SKILL.md)| Deploy a grid trading bot with testnet validation. |
93
+
|[bitmex-recipe-trailing-stop-runner](./bitmex-recipe-trailing-stop-runner/SKILL.md)| Ride a trend with a trailing stop that locks in profits on reversal. |
94
+
|[bitmex-recipe-basis-trade-entry](./bitmex-recipe-basis-trade-entry/SKILL.md)| Enter a perp-futures basis trade when premium exceeds threshold. |
95
+
|[bitmex-recipe-futures-hedge-spot](./bitmex-recipe-futures-hedge-spot/SKILL.md)| Hedge a long position with a short perpetual. |
96
+
|[bitmex-recipe-funding-rate-scan](./bitmex-recipe-funding-rate-scan/SKILL.md)| Scan perpetual contracts for funding rate carry opportunities. |
97
+
|[bitmex-recipe-testnet-strategy-backtest](./bitmex-recipe-testnet-strategy-backtest/SKILL.md)| Validate a strategy across multiple testnet sessions before going live. |
98
98
99
99
### Portfolio Recipes
100
100
101
101
| Skill | Description |
102
102
|-------|-------------|
103
-
|[recipe-weekly-rebalance](./recipe-weekly-rebalance/SKILL.md)| Weekly rebalance to maintain target position allocations. |
104
-
|[recipe-daily-pnl-report](./recipe-daily-pnl-report/SKILL.md)| Daily realised P&L summary from trades and wallet history. |
105
-
|[recipe-portfolio-snapshot-csv](./recipe-portfolio-snapshot-csv/SKILL.md)| Export portfolio snapshot with balances and positions to CSV. |
106
-
|[recipe-subaccount-capital-rotation](./recipe-subaccount-capital-rotation/SKILL.md)| Rotate capital between subaccounts based on strategy performance. |
107
-
|[recipe-fee-tier-progress](./recipe-fee-tier-progress/SKILL.md)| Track trading volume and commission rates. |
103
+
|[bitmex-recipe-weekly-rebalance](./bitmex-recipe-weekly-rebalance/SKILL.md)| Weekly rebalance to maintain target position allocations. |
104
+
|[bitmex-recipe-daily-pnl-report](./bitmex-recipe-daily-pnl-report/SKILL.md)| Daily realised P&L summary from trades and wallet history. |
105
+
|[bitmex-recipe-portfolio-snapshot-csv](./bitmex-recipe-portfolio-snapshot-csv/SKILL.md)| Export portfolio snapshot with balances and positions to CSV. |
106
+
|[bitmex-recipe-subaccount-capital-rotation](./bitmex-recipe-subaccount-capital-rotation/SKILL.md)| Rotate capital between subaccounts based on strategy performance. |
107
+
|[bitmex-recipe-fee-tier-progress](./bitmex-recipe-fee-tier-progress/SKILL.md)| Track trading volume and commission rates. |
108
108
109
109
### Market Data Recipes
110
110
111
111
| Skill | Description |
112
112
|-------|-------------|
113
-
|[recipe-morning-market-brief](./recipe-morning-market-brief/SKILL.md)| Morning summary: prices, funding, positions, and wallet. |
114
-
|[recipe-multi-pair-breakout-watch](./recipe-multi-pair-breakout-watch/SKILL.md)| Monitor multiple symbols for price breakouts. |
115
-
|[recipe-track-orderbook-depth](./recipe-track-orderbook-depth/SKILL.md)| Monitor order book depth and bid-ask imbalance for liquidity signals. |
116
-
|[recipe-price-level-alerts](./recipe-price-level-alerts/SKILL.md)| Set up price level alerts for key levels. |
113
+
|[bitmex-recipe-morning-market-brief](./bitmex-recipe-morning-market-brief/SKILL.md)| Morning summary: prices, funding, positions, and wallet. |
114
+
|[bitmex-recipe-multi-pair-breakout-watch](./bitmex-recipe-multi-pair-breakout-watch/SKILL.md)| Monitor multiple symbols for price breakouts. |
115
+
|[bitmex-recipe-track-orderbook-depth](./bitmex-recipe-track-orderbook-depth/SKILL.md)| Monitor order book depth and bid-ask imbalance for liquidity signals. |
116
+
|[bitmex-recipe-price-level-alerts](./bitmex-recipe-price-level-alerts/SKILL.md)| Set up price level alerts for key levels. |
117
117
118
118
### Risk Recipes
119
119
120
120
| Skill | Description |
121
121
|-------|-------------|
122
-
|[recipe-emergency-flatten](./recipe-emergency-flatten/SKILL.md)| Cancel all orders and close all positions immediately. |
123
-
|[recipe-drawdown-circuit-breaker](./recipe-drawdown-circuit-breaker/SKILL.md)| Halt trading when portfolio drawdown exceeds threshold. |
122
+
|[bitmex-recipe-emergency-flatten](./bitmex-recipe-emergency-flatten/SKILL.md)| Cancel all orders and close all positions immediately. |
123
+
|[bitmex-recipe-drawdown-circuit-breaker](./bitmex-recipe-drawdown-circuit-breaker/SKILL.md)| Halt trading when portfolio drawdown exceeds threshold. |
124
124
125
125
### Funding Recipes
126
126
127
127
| Skill | Description |
128
128
|-------|-------------|
129
-
|[recipe-withdrawal-to-cold-storage](./recipe-withdrawal-to-cold-storage/SKILL.md)| Safely withdraw funds to a pre-approved cold storage address. |
130
-
|[recipe-staking-yield-compare](./recipe-staking-yield-compare/SKILL.md)| Compare staking yields across instruments to find the best rate. |
129
+
|[bitmex-recipe-withdrawal-to-cold-storage](./bitmex-recipe-withdrawal-to-cold-storage/SKILL.md)| Safely withdraw funds to a pre-approved cold storage address. |
130
+
|[bitmex-recipe-staking-yield-compare](./bitmex-recipe-staking-yield-compare/SKILL.md)| Compare staking yields across instruments to find the best rate. |
0 commit comments