Can someone let me know how can I code the Bracket order using java code ? If anyone has done please share the java code ?
My requirement 1)Place the main or parent order // I could do this 2)If the status of the parent order is executed , then I want to place 2 more orders // I need help in tracking this order status a) Place the target order b)Place the stoploss order with trailing stoploss 3) If the target order or Stopless order excuted , then the other one shall cancel by itself .
I went through the api documnetation and also Example.java but couldn't figure out how to go ahead . The web socket code is supposed to help but could not able to figure it out . Please help.
Please add more examples on how to use websocket code .