A futures bot automates leveraged exposure
A futures trading bot places and manages derivative positions according to rules or models. It can go long or short without holding the underlying asset, but margin, liquidation, funding and basis turn a small model error into a much larger capital event.
Adding AI may change how signals or allocations are produced. It does not change the mechanics of the contract. Risk controls must be based on account and market state—not on a model’s confidence alone.
Four numbers control survival
Notional exposure
Leverage describes the relationship between exposure and supporting equity. A small price movement applied to a large notional position can consume the margin buffer quickly.
Maintenance margin and liquidation
Venues define when a position no longer has adequate collateral. Exact formulas differ by contract, account mode, maintenance tier and fees. A simple “entry divided by leverage” shortcut is not an adequate liquidation calculation for a real account.
Funding and basis
Perpetual contracts commonly exchange funding between long and short positions. The rate can change sign and magnitude. A strategy that earns directional P&L may still lose after funding; a nominally neutral strategy can be exposed to basis and leg mismatch.
Executable liquidity
Mark price, index price and executable order-book price serve different purposes. Liquidation and slippage models must use the venue’s actual contract mechanics and a stressed exit size.
Illustrative leverage stress
Suppose an account uses $1,000 of equity to control $5,000 of notional exposure. A 5% adverse move is a $250 mark-to-market loss before fees and funding—25% of starting equity. This simplified example is not a liquidation formula; it shows how notional exposure amplifies equity changes.
Equity impact ≈ price move × notional exposure ÷ starting equity Controls a futures bot needs
- Maximum notional, leverage and margin utilization
- Asset-specific liquidity and concentration limits
- Maximum slippage and order-price deviation
- Funding-rate and basis thresholds
- Liquidation-distance monitoring using the venue’s formula
- Stop-new-risk mode during stale data or venue degradation
- Partial-fill and one-leg recovery
- Emergency close and account reconciliation
Grid, directional and market-neutral are different jobs
| Approach | Primary hypothesis | Dominant risk |
|---|---|---|
| Futures grid | Price oscillates through a bounded range. | Persistent trend and accumulating exposure. |
| Directional long/short | A signal predicts direction or relative strength. | Model error amplified by leverage. |
| Spot–perpetual basis | Carry exceeds costs while legs offset direction. | Funding reversal, basis, venue and leg risk. |
Continue to funding-rate arbitrage for carry mechanics, arbitrage bots for broader spread structures, or return to the broader crypto algorithmic trading framework.
Sources and scope
- CFTC — Trading bot customer advisory
- Investor.gov — Protect your money
- Onchain Off Emotion risk disclosure
Contract, margin and liquidation rules vary by venue and jurisdiction. Verify the current primary documentation before acting.