Open DanilYachmenev opened 1 year ago
Add unit tests for DaoCross optimizer in defi/tulip/test/test_optimize.py
defi/tulip/test/test_optimize.py
buy
True
False
sell
TestRunSolver3
... _actions = ["buy", "buy", "sell", "sell", ... _quantities = [4, 2, 5, 3 ... _base_tokens = ["BTC", ..., "ETH", ..., "ADA", ..., "DOGE", ...] _quote_tokens = ["ETH", ..., "DOGE", ..., "BTC", ..., "ADA", ...]
TestRunSolver4
# TODO(Grisha): replace with the class that tests for N random orders. # TODO(Grisha): use `_generate_test_orders()` to get the orders. class TestRunSolver4(hunitest.TestCase):
@samarth9008, @okritvik to distribute FYI @gpsaggese
@lokashrinav how's it going with the task? have any questions?
Add unit tests for DaoCross optimizer in
defi/tulip/test/test_optimize.py
buy
order with the limit price cond =True
buy
order with the limit price cond =False
sell
orders with the same logicTestRunSolver3
as referenceTestRunSolver4
with this test@samarth9008, @okritvik to distribute FYI @gpsaggese