Skip to content

Commit

Permalink
Merge pull request #2 from wnz99/fix/bitmex-ws-symbol
Browse files Browse the repository at this point in the history
Fix bitmex ws symbol processing
  • Loading branch information
wnz99 authored May 17, 2020
2 parents bc7bd65 + 73bbe8a commit 01377a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/exchanges/bitmex/utils/processStreamEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 01377a4

Please sign in to comment.