uniVocity / univocity-trader

open-source trading framework for java, supports backtesting and live trading with exchanges
577 stars 140 forks source link

Fix removing the old order from the pending queue. #33

Closed wwadge closed 4 years ago

wwadge commented 4 years ago

In updateOrderStatus it eventually calls translate which creates a new Order. This however sets a new OrderId so the comparator in the SortedSet will fail to match.

It also attempts to keep the underlying connection alive to avoid timeouts.

jbax commented 4 years ago

Beautiful, thanks a lot for your contribution!