From 0d0cf1115794b7e1b148fb655d40ea58febb026c Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 17 Sep 2019 16:55:24 -0400 Subject: [PATCH 1/3] Fixed matching error in sim --- src/server/sparkd/exchange_sim/book/OrderMatcher.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/sparkd/exchange_sim/book/OrderMatcher.cpp b/src/server/sparkd/exchange_sim/book/OrderMatcher.cpp index 2238e4a30..bfcc1e75d 100644 --- a/src/server/sparkd/exchange_sim/book/OrderMatcher.cpp +++ b/src/server/sparkd/exchange_sim/book/OrderMatcher.cpp @@ -178,7 +178,9 @@ void OrderMatcher::match(std::vector *out) { auto iBid = me->bids.begin(); auto iAsk = me->asks.begin(); - if (iBid->price() >= iAsk->price()) { + if (iBid->price() > iAsk->price() || + price_equals(iBid->price(), iAsk->price())) + { Order bid = *iBid; Order ask = *iAsk; From 6d7290db63f8aebecd70395fcb3a405add89c154 Mon Sep 17 00:00:00 2001 From: Pedro Pinto Date: Tue, 17 Sep 2019 16:56:28 -0400 Subject: [PATCH 2/3] Updated release notes. --- doc/user/content/release_notes/_index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/user/content/release_notes/_index.md b/doc/user/content/release_notes/_index.md index bb70adfa5..786488e3e 100644 --- a/doc/user/content/release_notes/_index.md +++ b/doc/user/content/release_notes/_index.md @@ -4,6 +4,10 @@ weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ +## 2.9.2 +### Bug Fixes + - Fixed an issue with the exchange simulator that could lead to crossed markets + ## 2.9.1 ### Bug Fixes - Fixed an issue with trade sound alerts, where in some cases the use of a "In Between" condition could lead to a UI failure. From 69dcbdd3489dc3f88b6c7c7cf38d2e91717fc155 Mon Sep 17 00:00:00 2001 From: Michael Harding Date: Wed, 18 Sep 2019 13:08:49 -0400 Subject: [PATCH 3/3] Set type in system tests --- .../spark_test/system_test_scripts/spreader_lean_qty_factor.sh | 2 +- .../spark_test/system_test_scripts/spreader_simple_sanity.sh | 2 +- src/client/spark_test/system_test_scripts/test_clip_limits.sh | 2 +- src/client/spark_test/system_test_scripts/test_join_algo.sh | 2 +- .../spark_test/system_test_scripts/test_position_limits.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/spark_test/system_test_scripts/spreader_lean_qty_factor.sh b/src/client/spark_test/system_test_scripts/spreader_lean_qty_factor.sh index dab656a08..59b131be3 100644 --- a/src/client/spark_test/system_test_scripts/spreader_lean_qty_factor.sh +++ b/src/client/spark_test/system_test_scripts/spreader_lean_qty_factor.sh @@ -41,7 +41,7 @@ nohup ./sparkd run & pid=$! echo "sparkd pid: " $pid -dotnet sparkcmd.dll test spreader_lean_qty_factor +dotnet sparkcmd.dll test --type system spreader_lean_qty_factor exit_status=$? diff --git a/src/client/spark_test/system_test_scripts/spreader_simple_sanity.sh b/src/client/spark_test/system_test_scripts/spreader_simple_sanity.sh index a79760e29..ab07e5c69 100644 --- a/src/client/spark_test/system_test_scripts/spreader_simple_sanity.sh +++ b/src/client/spark_test/system_test_scripts/spreader_simple_sanity.sh @@ -35,7 +35,7 @@ nohup ./sparkd run & pid=$! echo "sparkd pid: " $pid -dotnet sparkcmd.dll test spreader_simple_sanity +dotnet sparkcmd.dll test --type system spreader_simple_sanity exit_status=$? pkill -P $$ diff --git a/src/client/spark_test/system_test_scripts/test_clip_limits.sh b/src/client/spark_test/system_test_scripts/test_clip_limits.sh index 542cbb399..ded29f2fd 100644 --- a/src/client/spark_test/system_test_scripts/test_clip_limits.sh +++ b/src/client/spark_test/system_test_scripts/test_clip_limits.sh @@ -34,7 +34,7 @@ nohup ./sparkd run & pid=$! echo "sparkd pid: " $pid -dotnet sparkcmd.dll test test_clip_limits +dotnet sparkcmd.dll test --type system test_clip_limits exit_status=$? pkill -P $$ diff --git a/src/client/spark_test/system_test_scripts/test_join_algo.sh b/src/client/spark_test/system_test_scripts/test_join_algo.sh index 0aa24331e..a8e9dc42d 100644 --- a/src/client/spark_test/system_test_scripts/test_join_algo.sh +++ b/src/client/spark_test/system_test_scripts/test_join_algo.sh @@ -111,7 +111,7 @@ run_bts_test() { get_tests_in_class test_names_tuple $class_name for test_name in ${test_names_tuple[@]}; do say_verbose "running test with name: $test_name ..."; - dotnet sparkcmd.dll test $test_name + dotnet sparkcmd.dll test --type system $test_name exit_status=$? done diff --git a/src/client/spark_test/system_test_scripts/test_position_limits.sh b/src/client/spark_test/system_test_scripts/test_position_limits.sh index 45837eab0..82922c2f8 100644 --- a/src/client/spark_test/system_test_scripts/test_position_limits.sh +++ b/src/client/spark_test/system_test_scripts/test_position_limits.sh @@ -35,7 +35,7 @@ nohup ./sparkd run & pid=$! echo "sparkd pid: " $pid -dotnet sparkcmd.dll test test_position_limits +dotnet sparkcmd.dll test --type system test_position_limits exit_status=$? pkill -P $$