๐Ÿ“ˆ

Crypto Trading Engine

Active position management on Binance โ€” spot, futures and margin โ€” with AI-adaptive trailing stops, regime detection and WebSocket live feeds.

โšก Binance WebSocket feeds ๐Ÿ”„ Trailing stops ๐Ÿ“Š Regime detection ๐Ÿงช Testnet first
BTC/USDT
$83,412
+2.4%
ETH/USDT
$3,104
+1.8%
BNB/USDT
$598
โˆ’0.6%
SOL/USDT
$168
+3.1%
Position P&L
+ยฃ412.50
Open: 3

Position Management

Active positions tracked in real time with adaptive exit rules

๐Ÿ“Œ

Trailing stops

Trailing stop activates once a position is up +2%. The stop follows the price upward and locks in profit if the market reverses. Configurable activation threshold per strategy.

๐Ÿ“Š

Scale-in at +3%

When a winning position reaches +3%, the engine adds to the position (scale-in) to maximise gains on trending moves. Maximum 3 scale-ins per position to control risk.

โฑ๏ธ

Time exits

Positions that have been flat (< ยฑ0.3%) for 30 minutes are closed automatically. Flat markets tie up margin and accumulate fees โ€” time exits free capital for better opportunities.

๐Ÿณ

Whale-aware strategy

The whale_aware_strategy.py module monitors order-book depth for large block orders that indicate institutional activity. Positions are sized and timed to avoid being caught on the wrong side of whale moves.

Adaptive Regime Detection

Stop distances adjust automatically based on whether the market is ranging or volatile

๐Ÿ”ต Ranging market

Tight 1% stop โ€” in a sideways chop, wide stops give up too much ground before the market moves in your favour. Tighter exits protect capital and allow re-entry.

๐ŸŸก Volatile market

Wider 3% stop โ€” in high-volatility regimes, tight stops get hit by noise. The wider stop rides out normal swings while still protecting against a true reversal.

Markets Supported

๐Ÿช™

Spot trading

Standard buy/sell of crypto assets on Binance spot markets. Full order-book access, market and limit orders, real-time P&L tracking per position.

โšก

Futures (USDโ“ˆ-M)

Leveraged long and short positions on Binance USDโ“ˆ-M perpetual futures. Margin management, liquidation monitoring and funding-rate tracking included.

๐Ÿ”„

Margin trading

Cross and isolated margin on Binance margin accounts. Borrow, repay and track interest automatically as part of position lifecycle management.

Setup & Safety

StepCommandNotes
1. Configure API keyspython3 binance_setup.py --setupKeys stored in api_keys.env
2. Test on testnetBINANCE_TESTNET=1 python3 strategy_live_runner.pyNo real funds at risk
3. Run livepython3 strategy_live_runner.pyWebSocket feed, active position loop
4. Backtest strategypython3 binance_backtest.pyHistorical OHLCV replay
5. Anti-manipulationpython3 binance_anti_manip.pyDetects wash-trade and spoofing patterns

Automate your crypto strategy

Contact us to discuss how Chameleon's trading engine can fit your workflow. Testnet setup included.

Get in touch โ† Back to overview