XChange icon indicating copy to clipboard operation
XChange copied to clipboard

CancelOrderParams

Open ww3456 opened this issue 8 years ago • 0 comments

I've just started trading with Binance and this is the first time I've not been able to cancel orders with just the ID, so am using TradeService interface's cancelOrder(CancelOrderParams) method added by @npomfret in #1625.

I'd like to suggest some changes to the CancelOrderParams implementations to make it more generic, e.g. so that it is easier to use the same CancelOrderParams object across different exchange. Essentially the changes to xchange-core would include those below and fixing up the various connections as required to support this.

  • change CancelOrderByIdParams to an interface, possibly with a default implementation for convienience.
  • change CancelAllOrders to an interface with a boolean doCancelAll() method
  • add a CancelOrderByCurrencyPair interface

These would bring things more in line with how TradeHistoryParams are handled.

Does anyone have any thoughts about this?

ww3456 avatar Dec 08 '17 17:12 ww3456