jesse
jesse copied to clipboard
feat(FutureExchange/order store): delete canceled / executed orders to avoid O(N) and O(N^2) loops
On cases of strategeis that move orders every candle. (such as move the entries / tp / sl ) than positions get with 100s of orders and even 1000s.
every candle there are several loops on these lists and it make the simulation too much time!
I merged master into it, can you please confirm everything is ok? The tests are passing.