Another way to is to listen to websocket data. What I do is I subscribe to "execution" topic. This way, every time your order gets executed you receive an event with all the info about the trade. Then, you can have a callback function that places a trade for you.
Here's the link to the api: https://bybit-exchange.github.io/docs/inverse/#t-websocketexecution
Here's how to subscribe:
Here's the sample response:
If you like my answer, please help me too by supporting my blog here: