return Integer.toString(id);
}
@Override
public String[] sendBracketOrders(IOrder parent, IOrder[] children) throws ConnectException, RequestFailedException {
Order iBParentOrder = IBOrder.toIBOrder(parent, constantTranslator);
Contract iBParentContract = IBContract.toIBContract(parent.getContract(), constantTranslator);
int parentId = sendOrder(iBParentOrder, iBParentContract);
String[] ids = new String[1 + children.length];
ids[0] = Integer.toString(parentId);
for (int i = 0; i < children.length; i++) {
Order iBChildOrder = IBOrder.toIBOrder(children[i], constantTranslator);
iBChildOrder.m_parentId = parentId;
Contract iBChildContract = IBContract.toIBContract(children[i].getContract(), constantTranslator);
int childId = sendOrder(iBChildOrder, iBChildContract);
ids[i + 1] = Integer.toString(childId);
}