From 73bbe8a6dcbdd6c839732d27774f512cbe137c64 Mon Sep 17 00:00:00 2001 From: David Fava Date: Sun, 17 May 2020 10:24:14 +0100 Subject: [PATCH] Fix bitmex ws symbol processing --- src/exchanges/bitmex/utils/processStreamEvent.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/exchanges/bitmex/utils/processStreamEvent.js b/src/exchanges/bitmex/utils/processStreamEvent.js index 7011aea..954dcc4 100644 --- a/src/exchanges/bitmex/utils/processStreamEvent.js +++ b/src/exchanges/bitmex/utils/processStreamEvent.js @@ -4,10 +4,9 @@ const processStreamEvent = (event) => { const { data, table } = msg; const interval = table.replace('tradeBin', ''); const { timestamp, open, high, low, close, volume, symbol } = data[0]; - const ticker = `${symbol.slice(0, -3)}USD`; const candleData = { timestamp, open, close, high, low, volume }; - return [ticker, candleData, interval]; + return [symbol, candleData, interval]; } catch (e) { // eslint-disable-next-line no-console console.warn(e);