arb1 redeploy

This commit is contained in:
tim
2024-10-29 21:08:56 -04:00
parent 5d3d1d6f5a
commit a3bfaa2b08
5 changed files with 43 additions and 25 deletions

View File

@@ -18,12 +18,6 @@ export function nearestOhlcStart(timestamp, periodSeconds=null) {
return Math.round((timestamp-OHLC_START) / periodSeconds) * periodSeconds + OHLC_START
}
export function pointsToTvOhlcStart(points, periodSeconds=null) {
return points === null ? null : points.map((p) => {
return {time: nearestOhlcStart(p.time, periodSeconds), price: p.price}
})
}
export function dirtyPoints(pointsA, pointsB) {
if (pointsA === undefined)
return true