pricehistory
Version:
Series data with technical indicators.
12 lines (11 loc) • 358 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function setCandleAnchor(option, candle) {
var _a;
if ((_a = option.anchor) === null || _a === void 0 ? void 0 : _a.length) {
for (const anchor of option.anchor) {
candle[`anchor${anchor}`] = anchor;
}
}
}
exports.default = setCandleAnchor;