code: def registerTrailingStop(self, tickerId, orderId=0, quantity=1,
              lastPrice=0, trailPercent=100., trailAmount=0., parentId=0, **kwargs):
          
  
          ticksize = self.contractDetails(tickerId)["m_minTick"]
  
          trailingStop = self.trailingStops[tickerId] = {
              "orderId": orderId,
              "parentId": parentId,
              "lastPrice": lastPrice,
              "trailAmount": trailAmount,
              "trailPercent": trailPercent,
              "quantity": quantity,
              "ticksize": ticksize
          }
  
          return trailingStop
docs: adds trailing stop to monitor list