marketValue

Compute.marketValue(factor=1)

Return a special object that represents the current market value

Arguments
  • factor (number()) – OPTIONAL multiplier. default: 1.0

Example:

/**
 * Creating an object that's two times the current market value that
 * can be passed to `job.exec()`.
 */
const doubleMarketValue = compute.marketValue(2);
console.log(doubleMarketValue);