From 4a07d66e0786d46316eef91e384836c369e769b1 Mon Sep 17 00:00:00 2001 From: Bryan Ingle Date: Tue, 24 Oct 2023 12:45:10 -0600 Subject: [PATCH] Correct failure of `2/0/D` and `2/0/d` messages to assign `Quote.settlementPrice` --- docs/content/releases/6.2.3.md | 3 +++ lib/marketState/MarketState.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 docs/content/releases/6.2.3.md diff --git a/docs/content/releases/6.2.3.md b/docs/content/releases/6.2.3.md new file mode 100644 index 00000000..d8c5c6c5 --- /dev/null +++ b/docs/content/releases/6.2.3.md @@ -0,0 +1,3 @@ +**Bug Fixes** + +* Corrected failure of `2/0/D` and `2/0/d` messages to assign `Quote.settlementPrice` property value. \ No newline at end of file diff --git a/lib/marketState/MarketState.js b/lib/marketState/MarketState.js index 5763a580..7ab8d2df 100644 --- a/lib/marketState/MarketState.js +++ b/lib/marketState/MarketState.js @@ -644,7 +644,8 @@ module.exports = (() => { q.message = message; q.lastPrice = message.value; - q.settlement = message.value; + q.settlementPrice = message.value; + if (message.element === 'D') { q.flag = 's'; }