Fix Python trading bot
Budget: $30 – $250 USD
I have grid python script work with Binance-clint libraries , the script work fine but there are some error in code that will effect the overall result.
Here is how the script work:
1-places a buy orders at the specified grid level.(market)
2-Waits for the first buy order in grid to be filled.
3-Places a take-profit sell order once the buy order is filled.
4-Waits for the take-profit sell order to be filled.
5-If the filled take-profit is at the first grid level, it closes all open orders, updates the grid prices, and start step 1. If not, the function continues to place and track orders at the same grid level.
In summary, this grid trading bot places buy and sell orders at different price levels. When a buy order is filled, it places a take-profit sell order, and when the sell order is filled, it repeats the cycle. If the first grid level's sell order is filled, it updates the grid prices and restarts the process.
Here the problem I want to fix:
1-Sometime after first take profit reach the bot not close order correctly, still some amount not closed.
2- Add if first order not filled in 10 sec closes all placed orders and start step 1.
3- when the bot start it will place all order in same time I want only 4 buy orders at time , if it's filled place next 4 orders until reach grid step 20 .
Here is how the script work:
1-places a buy orders at the specified grid level.(market)
2-Waits for the first buy order in grid to be filled.
3-Places a take-profit sell order once the buy order is filled.
4-Waits for the take-profit sell order to be filled.
5-If the filled take-profit is at the first grid level, it closes all open orders, updates the grid prices, and start step 1. If not, the function continues to place and track orders at the same grid level.
In summary, this grid trading bot places buy and sell orders at different price levels. When a buy order is filled, it places a take-profit sell order, and when the sell order is filled, it repeats the cycle. If the first grid level's sell order is filled, it updates the grid prices and restarts the process.
Here the problem I want to fix:
1-Sometime after first take profit reach the bot not close order correctly, still some amount not closed.
2- Add if first order not filled in 10 sec closes all placed orders and start step 1.
3- when the bot start it will place all order in same time I want only 4 buy orders at time , if it's filled place next 4 orders until reach grid step 20 .