@ Override public String placeLimitOrder ( LimitOrder placeOrder ) { OrderType type = placeOrder . getType ( ) ; Currency baseCurrency = placeOrder . getCurrencyPair ( ) . base ; Currency counterCurrency = placeOrder . getCurrencyPair ( ) . counter ; BigDecimal originalAmount = placeOrder . getOriginalAmount ( ) ; BigDecimal limitPrice = placeOrder . getLimitPrice ( ) ; OrderReq orderReq = createNormalizedLimitOrderReq ( baseCurrency , counterCurrency , type , limitPrice , originalAmount , null , null , null ) ; try { orderApi . order ( orderReq ) . getOrderHash ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return null ; }
returns OrderHash so you can fetch it and cancel it ... but there is a OrderNumber that you can intercept if you need to .