Automatic short bot for Binance Futures with a web panel of levels
This bot automatically trades a short strategy on Binance USDT-M Futures based on the principle: breakout level → retest → entry into short.
It:
• Connects to the exchange via REST and WebSocket, receives live candles and ticks.
• Accepts a specified level (via web panel or webhook), waits for a breakout upwards, records the local maximum (HH), and then looks for a retest of the level to enter short.
• Places a STOP-MARKET order for entry and after opening the position automatically sets a protective STOP-MARKET (SL) above the HH maximum considering the exchange price step.
• Calculates the position size based on risk in USDT: takes into account the distance to the stop, commission, and exchange limits (tickSize, stepSize, minQty, minNotional).
• Maintains a list of active stops and levels, saves the state of the strategy in files to continue working with current data after a restart.
• Has a web panel: shows a chart with the level and HH, the current state for each instrument, allows changing levels and risk without restarting the bot.
All logic works completely automatically: after setting the risk and levels, the bot independently searches for entry points, opens short positions, and manages stop orders.
It:
• Connects to the exchange via REST and WebSocket, receives live candles and ticks.
• Accepts a specified level (via web panel or webhook), waits for a breakout upwards, records the local maximum (HH), and then looks for a retest of the level to enter short.
• Places a STOP-MARKET order for entry and after opening the position automatically sets a protective STOP-MARKET (SL) above the HH maximum considering the exchange price step.
• Calculates the position size based on risk in USDT: takes into account the distance to the stop, commission, and exchange limits (tickSize, stepSize, minQty, minNotional).
• Maintains a list of active stops and levels, saves the state of the strategy in files to continue working with current data after a restart.
• Has a web panel: shows a chart with the level and HH, the current state for each instrument, allows changing levels and risk without restarting the bot.
All logic works completely automatically: after setting the risk and levels, the bot independently searches for entry points, opens short positions, and manages stop orders.