UNPKG

trade-data-generator

Version:

A library to simulate market depth, trade data, and OHLC candlestick generation for trading applications.

13 lines (11 loc) 226 B
class Candlestick { constructor() { this.open = null; this.high = -Infinity; this.low = Infinity; this.close = null; this.volume = 0; this.timestamp = Date.now(); } } module.exports = Candlestick;