diff --git a/doc/user/content/release_notes/_index.md b/doc/user/content/release_notes/_index.md index c9e1cfa62..266f4a663 100644 --- a/doc/user/content/release_notes/_index.md +++ b/doc/user/content/release_notes/_index.md @@ -4,6 +4,15 @@ weight = 3 sort_by = "weight" insert_anchor_links = "right" +++ +## 2.15.3 +### Bug Fixes + - Fixed a bug where some CME currency spreads exhibited incorrect tick values +## 2.15.2 +### User Visible Changes + - Excel RTD plugin can now receive ICE market data +## 2.15.1 +### Bug Fixes + - Fixed a FIX log parsing issue that resulted in exchange gateway logon problems ## 2.15.0 ### User Visible Changes - Added ability to hide Ladder status messages via Ladder Settings -> Left Panel tab -> Show/Hide groupbox -> Status Message diff --git a/src/client/spark/view/Spark/Core/TickUtils.cs b/src/client/spark/view/Spark/Core/TickUtils.cs index 156e8c6d7..9a98b1e68 100644 --- a/src/client/spark/view/Spark/Core/TickUtils.cs +++ b/src/client/spark/view/Spark/Core/TickUtils.cs @@ -292,7 +292,9 @@ namespace mbts.spark { int count = 0; double factored_base = log10_diff > 0 ? reduced_target_base * Math.Pow(10, Math.Ceiling(log10_diff)) : reduced_target_base; do { - if (factored_base % raw_base == 0) + // Note that the modulus operator is not used here due to rounding errors. + // Such a rounding errror was the cause of the bug https://bluetradesys.atlassian.net/browse/SP-283. + if (MathUtils.is_int(factored_base / raw_base)) return new TickFactors(factored_base, factored_base / raw_base); factored_base *= 10; } while (++count < 10); diff --git a/src/client/spark_excel/rtd/subscriptions/MDSubscribe.cs b/src/client/spark_excel/rtd/subscriptions/MDSubscribe.cs index a96272d2a..e032e7b90 100644 --- a/src/client/spark_excel/rtd/subscriptions/MDSubscribe.cs +++ b/src/client/spark_excel/rtd/subscriptions/MDSubscribe.cs @@ -66,9 +66,23 @@ namespace bts.excel.rtd if (string.IsNullOrEmpty(contract)) return Observable.Return(new []{"Can't Parse Contract: " + contract ?? string.Empty}); - Func where = (x => x.Exchange == ven && x.Symbol == symbol && x.security_type() == sectype && - x.Glbx.SecurityDesc == contract); + Func desc = null; + switch(ven) + { + case Venue.Sim: + case Venue.Glbx: + desc = (x=> x.Glbx.SecurityDesc == contract); + break; + case Venue.Ice: + desc = (x=> x.Ice.SecurityDesc == contract); + break; + default: + desc = (x => true); + break; + } + Func where = (x => x.Exchange == ven && x.Symbol == symbol && x.security_type() == sectype && desc(x) ); + var stream = market_data(ven).subscribe_combined(where); return stream; } diff --git a/src/client/spark_excel/spark_excel_example_ice.xlsm b/src/client/spark_excel/spark_excel_example_ice.xlsm new file mode 100644 index 000000000..eaa6e0b2c Binary files /dev/null and b/src/client/spark_excel/spark_excel_example_ice.xlsm differ diff --git a/src/sdk/Dockerfile b/src/sdk/Dockerfile index 56a7c1450..8857c3c74 100644 --- a/src/sdk/Dockerfile +++ b/src/sdk/Dockerfile @@ -5,7 +5,6 @@ from bluetradingsystems/linux_docker # This lets us query an image to see when it was built ARG SDK_VERSION=0 ARG SDK_BUILD_DATE=0 -ARG USERNAME=bts # configure build_examples env SDK_ROOT=/sdk \ @@ -13,14 +12,14 @@ env SDK_ROOT=/sdk \ SDK_BUILD_DATE=$SDK_BUILD_DATE # add user bts -RUN groupadd --gid 1000 $USERNAME && \ - useradd -s /bin/bash --uid 1000 --gid 1000 -m $USERNAME && \ +RUN groupadd --gid 1000 bts && \ + useradd -s /bin/bash --uid 1000 --gid 1000 -m bts && \ mkdir -p /sparkbin/plugins && \ mkdir /sparkdata && \ mkdir /sdk && \ ln -s /sparkbin/ /sdk/lib && \ - echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME && \ - chmod 0440 /etc/sudoers.d/$USERNAME && \ + echo bts ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/bts && \ + chmod 0440 /etc/sudoers.d/bts && \ chown -R bts.bts /sparkbin/plugins && \ chown -R bts.bts /sparkdata @@ -29,6 +28,6 @@ COPY include/ /sdk/include/ COPY lib/ /sparkbin/ COPY externals /sdk/externals/ COPY spark.conf /sparkdata/conf/ -COPY --chown=$USERNAME futures.coconut /sparkdata/data/replay/futures.coconut +COPY --chown=bts futures.coconut /sparkdata/data/replay/futures.coconut