Signal msft = sentryService.stockSignal(ActionForStock.BuyToOpen)
.quantity(10).symbol("msft")
.stopLoss(base, stopSize)
.duration(Duration.GoodTilCancel);
if (isLimit) {
msft = msft.limitOrder(triggerPrice);
} else {
msft = msft.stopOrder(triggerPrice);
}
Response openResponse = msft.send();