Files
bitburner-src/markdown/bitburner.stock.nextupdate.md
2025-10-14 11:51:54 -07:00

799 B

Home > bitburner > Stock > nextUpdate

Stock.nextUpdate() method

Sleep until the next Stock Market price update has happened.

Signature:

nextUpdate(): Promise<number>;

Returns:

Promise<number>

Promise that resolves to the number of milliseconds of Stock Market time that were processed in the previous update (always 6000 ms).

Remarks

RAM cost: 1 GB

The amount of real time spent asleep between updates can vary due to "bonus time" (usually 4 seconds - 6 seconds).

Example

while (true) {
  await ns.stock.nextUpdate();
  // Manage your stock portfolio
}