charton API / @chart-on/core / index / createMockDataSource
Function: createMockDataSource()
createMockDataSource(
options?):MockDataSource
Defined in: packages/core/src/data/adapters.ts:436
Deterministic simulated market for demos and tests. Each symbol has one price path shared by every interval, calendar ones included, so a coarse bar is the aggregate of the finer bars inside it. Prices revert slowly towards startPrice, so long histories stay in range. History ends at the current bar; live ticks move the forming bar along the same path and roll a new one when the clock crosses the bar boundary.