Use Order in wrappers

Issue #296 new
Benjamin Cordes created an issue

Order exists as a class but is not used in wrappers.

if (type.equals(Constant.SELL)) {
 order1Response = Global.exchange.getTrade().sell(Global.options.getPair(), amount1, price);
} else {
order1Response = Global.exchange.getTrade().buy(Global.options.getPair(), amount1, price);
}

With order abstraction this could read

orderResponse = Global.exchange.getTrade().submit(Order); logorder(order);

Comments (7)

  1. Benjamin Cordes reporter

    I would be helpful to have the order abstraction available throughout, for example to display orders, to store orders before and after submission, for testing, etc.

  2. Log in to comment