Comparing version 2.1.1 to 2.1.2
@@ -7,2 +7,6 @@ # Changelog | ||
## [2.1.2] - 2023-01-11 | ||
### Fixed | ||
- fix for very specific event subscriptions. | ||
## [2.1.1] - 2023-01-18 | ||
@@ -9,0 +13,0 @@ ### Fixed |
{ | ||
"name": "candles", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Generate candlesticks from your tick data in realtime.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -88,4 +88,4 @@ const Clock = require('./Clock'); | ||
this.series[product].timeframe[timeframe].currentCandle.updatePrice(Number.parseFloat(price), Number.parseFloat(size).toFixed(8)); | ||
this.emit('current ' + this.series[product].product + ' ' + this.series[product].timeframe[timeframe].timeframe, this.series[product].timeframe[timeframe].currentCandle); | ||
this.emit('current ' + this.series[product].product, this.series[product].timeframe[timeframe].currentCandle); | ||
this.emit('current ' + this.series[product].timeframe[timeframe].product + ' ' + this.series[product].timeframe[timeframe].timeframe, this.series[product].timeframe[timeframe].currentCandle); | ||
this.emit('current ' + this.series[product].timeframe[timeframe].product, this.series[product].timeframe[timeframe].currentCandle); | ||
this.emit('current ' + this.series[product].timeframe[timeframe].timeframe, this.series[product].timeframe[timeframe].currentCandle); | ||
@@ -92,0 +92,0 @@ this.emit('current', this.series[product].timeframe[timeframe].currentCandle); |
55703