Skip to content

charton API


charton API / @chart-on/core / testing / sampleBars

Function: sampleBars() ​

sampleBars(options?): Bar[]

Defined in: packages/core/src/testing/kit.ts:178

Deterministic OHLCV bars: a seeded random walk, prices rounded to cents, so the same options give the same bars on every machine.

Parameters ​

options? ​

SampleBarsOptions = {}

Returns ​

Bar[]