XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
Hello,
Xchange is returning Kucoin trades with null id :
Trade{ type=BID, originalAmount=4.127400000000000000, instrument=ORAI/USDT, price=6.057, timestamp=Sun Jan 26 12:05:47 UTC 78177, **id='null',** makerOrderId='null', takerOrderId='null'}
The trade class need a mandatory Id to check equals :
public boolean equals(Object o) { if (this == o) { return true; } else { return o != null && this.getClass() == o.getClass() ? this.id.equals(((Trade)o).getId()) : false; } }
Hello, Xchange is returning Kucoin trades with null id :
Trade{ type=BID, originalAmount=4.127400000000000000, instrument=ORAI/USDT, price=6.057, timestamp=Sun Jan 26 12:05:47 UTC 78177, **id='null',** makerOrderId='null', takerOrderId='null'}
The trade class need a mandatory Id to check equals :public boolean equals(Object o) { if (this == o) { return true; } else { return o != null && this.getClass() == o.getClass() ? this.id.equals(((Trade)o).getId()) : false; } }