Date: 2021-09-22 10:32:43
Score: 6
Report link

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:

enter image description here

Here's the sample response:

enter image description here

If you like my answer, please help me too by supporting my blog here:

  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me to
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: doppelgunner