Automation GTT

theankitdabas
for automation of placing two legg GTT order, and regular updating it through a trailing script.... do we need to use Socket or how it can be done ?
Tagged:
  • rajnivp
    for trailing you'll need to keep monitoring live price so for that you need to use websocket connection
  • theankitdabas
    HOW TO GET THIS DONE ??

    def on_order_update(self, ws, data)
    # Handle order updates
    # TODO: Here we need to add code to place the order

    in this section i want to get the order id of each BUY order placed and place a SELL two leg gtt order with stoploss -27% and target 12%
Sign In or Register to comment.