binbot-charts 0.2.37 → 0.2.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -140,15 +140,7 @@ class Datafeed {
|
|
|
140
140
|
getTimescaleMarks(symbolInfo, from, to, onDataCallback, resolution) {
|
|
141
141
|
if (this.timescaleMarks.length > 0) {
|
|
142
142
|
let timescaleMarks = [];
|
|
143
|
-
this.timescaleMarks.forEach(mark =>
|
|
144
|
-
let time = new Date(mark.time * 1000);
|
|
145
|
-
time.setMinutes(0);
|
|
146
|
-
time.setSeconds(0);
|
|
147
|
-
time.setMilliseconds(0);
|
|
148
|
-
const roundFloor = time.getTime() / 1000;
|
|
149
|
-
mark.time = roundFloor;
|
|
150
|
-
timescaleMarks.push(mark);
|
|
151
|
-
});
|
|
143
|
+
this.timescaleMarks.forEach(mark => timescaleMarks.push(mark));
|
|
152
144
|
onDataCallback(timescaleMarks);
|
|
153
145
|
}
|
|
154
146
|
}
|
package/package.json
CHANGED