Bot Rentals / Bitunix Perps Bot
Bitunix — USDT perpetual futuresBitunix Perps Bot
SI-BOT-BTNX-PERP
Order-book signal bot for Bitunix USDT perpetual futures. Clusters resting size into walls and trades the gaps between them with a hard risk cap per position.
Rent 1 day Rent 30 days Ask a question first
Those links return payment terms over x402. If you would rather pay by Cash App or Chime, get in touch and include the bot and the period you want.
Specification
- Market
- Bitunix — USDT perpetual futures
- Language
- Python 3.9+
- Runs on
- Your machine — Linux, macOS, or Windows
- Needs
- A trade-only Bitunix API key, withdrawals disabled
- Dry run
- No — start with a small RISK_PCT on one symbol instead
What it actually does
- Polls live order-book depth for each symbol you enable.
- Clusters nearby price levels into walls and measures the notional resting at each.
- Looks for a book lopsided past your imbalance ratio, with a gap wide enough to trade into.
- Derives position size from your stop distance so the risk percentage is a true loss cap, not a notional figure.
- Skips anything that does not clear your minimum reward-to-risk ratio.
- Sets leverage per symbol at startup and re-syncs positions already open on the exchange.
- Stops trading entirely after a run of consecutive losses, and requires a restart to clear.
The settings that decide your risk
| Setting | What it does |
|---|---|
RISK_PCT | max fraction of balance risked per trade — a true loss cap |
SYMBOLS | which pairs to scan |
LEVERAGE | applied per symbol at startup; check the exchange maximum |
MIN_WALL_NOTIONAL | how much resting size counts as a wall |
IMBALANCE_RATIO | how lopsided the book must be to fire |
MIN_RR_RATIO | minimum reward-to-risk before a trade is taken |
MAX_LOSSES_BEFORE_STOP | consecutive losses that trigger a hard stop |
Credentials and safety
Bitunix API keys carry permissions. Issue a key with trading enabled and withdrawals disabled — the bot makes no withdrawal or transfer calls of any kind, so it needs nothing more, and a restricted key means a leaked key cannot drain the account.
Specific risk for this bot
Leveraged perpetuals can liquidate a position faster than a stop can fill, particularly in a thin book or a fast move. Order-book signals are read from a snapshot that can be stale or spoofed by resting size that is pulled before you arrive.
It can lose money, including all of the amount you fund it with. There is no published track record and no guarantee of profit. Start small.
Getting it running
pip install -r requirements.txt
cp .env.sample .env # BITUNIX_API_KEY, BITUNIX_SECRET_KEY, BOT_LICENSE
export $(grep -v '^#' .env | xargs)
python bitunix_bot.py
Credentials are read from the environment. The bot refuses to start without them, and it does not persist state — restarting clears cooldowns and open-position tracking, though positions already on the exchange are re-synced. P&L on exchange-closed positions is estimated, not exact.
Set BOT_LICENSE to the licence string you received. The bot verifies it at startup against
https://saylorinnovations.com/api/license/verify and will not run without a valid one.