Merge branch 'master' into ilink3_gateway

This commit is contained in:
Pedro Pinto committed 2020-02-20 08:39:47 -05:00
commit 932738f98e
5 files changed
+33 -9

No files matched your search

+9
View File
@@ -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
@@ -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);
@@ -66,9 +66,23 @@ namespace bts.excel.rtd
if (string.IsNullOrEmpty(contract))
return Observable.Return(new []{"Can't Parse Contract: " + contract ?? string.Empty});
Func<SecurityImmutable, bool> where = (x => x.Exchange == ven && x.Symbol == symbol && x.security_type() == sectype &&
x.Glbx.SecurityDesc == contract);
Func<SecurityImmutable, bool> 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<SecurityImmutable, bool> where = (x => x.Exchange == ven && x.Symbol == symbol && x.security_type() == sectype && desc(x) );
var stream = market_data(ven).subscribe_combined(where);
return stream;
}
Binary file not shown.
+5 -6
View File
@@ -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