@aurox/ohlcv-helpers
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -16,2 +16,8 @@ "use strict"; | ||
let previousClose = defaultValue; | ||
// Should there exist an entry in the dataset before the initial time unit, we should use that as previous close | ||
avl.range(0, startOfInitialTimeUnit, node => { | ||
if (node.data) { | ||
previousClose = node.data.price; | ||
} | ||
}); | ||
for (let cursor = startOfInitialTimeUnit; cursor <= startOfFinalTimeUnit; cursor += timeUnitDuration) { | ||
@@ -18,0 +24,0 @@ const currentRangeStart = cursor; |
{ | ||
"name": "@aurox/ohlcv-helpers", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19583
445