make a binance bot

Job ID: 36245005

Budget: $15 – $25 USD

Program with binance api, trading future pair BTCUSDT, leverage 5x, cross margin, all those following trade and balance are regarding the USD-m future


First, open market buy order, size = use 100% usd-m future balance.

Then repeat following steps every 5 mins, considering give the time between each steps for the orders to execute.

2. Cancel all pending orders no matter if there is any or not.
2. Check if the current market price is higher than my last long order, please not only last and long order is checked.
2.1 If it’s higher, open market long order, size = use 50% usd-m future balance.
2.1.1 Open stoploss order, stop price = 95% of current market price, size = 25% of current position
2.1.2. Transfer the remaining usd-m future balance to spot trading account.
2.2 If it’s same or lower, do nothing

And very important, you have to monitor the stoploss order, whenever the stoploss order is triggered, add the remaining balance to the current position margin, this action don’t wait the 5 mins loop to act, it should be activated anytime when the stoploss order is triggered.
Related categories: Python Binance