make a binance bot - 08/01/2024 05:02 EST

Job ID: 37626255

Budget: $50 – $0 USD

Programming with binance api, trading future pair BTCUSDT, set initial leverage 3x and isolating margin mode, all those following trade and balance are regarding the USD-m future


1. open a market buy order with all the balance in the future wallet and remember the initial position quantity (10BTC for example)

Then repeat the following steps every 10 seconds, considering 1 sec between each step for the orders to execute.

2. Cancel all pending orders
3. check the current position PNL, if it's in profit and the profit is more than 200USDT, transfer 30% of the profit to the spot wallet.
4. compound the 90% of the remaining profit into the current position (70%x90%= 63%), to do so is because the price volatile could make the balance not enough, so leave 10% room for the volatile. but if you have a better idea please share it with me.
5. check the position status, if the position is liquidated, add XXX USDT to the future balance from the spot wallet and open a new position with a 30% initial order size (3BTC for example), and update the order size for the next cycle, which means if it's liquidated again, the new size could be 30% of 3BTC which is 1BTC and so on.

all the steps need to be programmed with notification and retry, when it stops working that should retry and print where goes wrong.

Python is preferred, and GUI is preferred.
Related categories: Python API Binance