Trading Bots / Bitunix Perps Bot
Bitunix — USDT perpetual futures (BTC, ETH, SOL, BNB, XRP and ADA by default)Bitunix Perps Bot
SI-BOT-BTNX-PERP
Order-book signal bot for Bitunix USDT perpetual futures. Clusters resting size into walls and trades toward the gaps between them, sizing each position from its stop distance.
Rent it: email Dave Ask a question first
At a glance
- Market
- Bitunix — USDT perpetual futures (BTC, ETH, SOL, BNB, XRP and ADA by default)
- Language
- Python 3.9+
- 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
- Reads full order-book depth, mark price and funding rate for each enabled symbol every 5 seconds.
- Merges price levels within 0.3% of each other into walls, and only counts a wall above your
MIN_WALL_NOTIONALthat sits within 4% of the mark price. - Fires when one side's wall is at least
IMBALANCE_RATIO(default 2.75×) the other side, and a sparse stretch of the book at least 0.35% wide gives it room to trade toward. The first take-profit is the far edge of that gap and the stop sits just past the wall. - Skips anything below your minimum reward-to-risk ratio (default 1.35).
- Sizes the position from the stop distance, so
RISK_PCTof your balance (default 1.25%) is the loss if the stop is hit, capped by what your balance and leverage allow. - Pulls the stop in if it would sit within 0.2% of the estimated liquidation price.
- Enters with a limit order 0.05% inside the best bid or ask, with the take-profit and stop attached, and cancels it if it has not filled in 45 seconds.
- Exits in two stages: half closes at the first take-profit on the exchange, and the other half runs to a second target at double the distance. The bot also enforces the stop and the second target itself with market orders, so it needs to stay running.
- Sets leverage per symbol at startup (defaults: 50x BTC and ETH, 30x SOL, 25x BNB and XRP, 20x ADA) and re-syncs positions already open on the exchange.
- Guards at all times: no more than 5 open positions (one per symbol), a daily loss cap (default 150 USDT), a 5-minute pause after any loss, and a full stop after 3 losses in a row.
- Reads funding rate but does not use it to filter trades.
The settings that decide your risk
| Setting | What it does |
|---|---|
RISK_PCT | max fraction of balance risked per trade: a true loss cap if the stop fills (default 0.0125) |
SYMBOLS | which pairs to scan (default BTC, ETH, SOL, BNB, XRP, ADA) |
LEVERAGE | applied per symbol at startup; check the exchange maximum |
MIN_WALL_NOTIONAL | how much resting size counts as a wall, per symbol |
IMBALANCE_RATIO | how lopsided the book must be to fire (default 2.75) |
MIN_RR_RATIO | minimum reward-to-risk before a trade is taken (default 1.35) |
MAX_CONCURRENT_POSITIONS | across all symbols (default 5) |
MAX_DAILY_LOSS_USDT | the bot pauses for the day at this loss (default 150) |
COOLDOWN_AFTER_LOSS_SEC | pause after any losing trade (default 300) |
MAX_LOSSES_BEFORE_STOP | consecutive losses that trigger a hard stop (default 3) |
LIMIT_TIMEOUT_SEC | how long an entry order waits for a fill (default 45) |
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, and the default leverage is high (up to 50x). Order-book signals are read from a snapshot that can be stale or spoofed by resting size that is pulled before you arrive. Profit and loss on positions the exchange closes is estimated, not exact.
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.
Renting it
Want to rent Bitunix Perps Bot?
Rentals are arranged by email. Tell Dave which bot you want and for how long (a day, a month, or something else) and you will get a reply with the price and how it works.