Caplin Trader 4.8.0

Class: module:caplin/workbench/model/PriceGenerator

module:caplin/workbench/model/PriceGenerator

Constructor

new module:caplin/workbench/model/PriceGenerator(pFieldNames)

Generates a random price update set for the the specified field names.
Parameters:
Name Type Description
pFieldNames Array A list of field names that should be updated randomly.
Implements:

Methods

generate(mSeeds)

Add the randomly generated number to all defined fields Makes prices movements consistent across bid/ask. e.g. 1.1123 -> 1.1135
Parameters:
Name Type Description
mSeeds Map A map of seed values to base the update on.