public static LimitOrder adaptOrder ( BigDecimal originalAmount , BigDecimal price , String tradedCurrency , String transactionCurrency , String orderTypeString , String id , Date timestamp ) { // place a limit order OrderType orderType = adaptSide ( orderTypeString ) ; CurrencyPair currencyPair = adaptCurrencyPair ( tradedCurrency , transactionCurrency ) ; LimitOrder limitOrder = new LimitOrder ( orderType , originalAmount , currencyPair , id , timestamp , price ) ; return limitOrder ; }
Adapts a ANXOrder to a LimitOrder