Class
caplin.workbench.model

PriceGenerator

Generates a random price update set for the the specified field names.

Constructor Summary

Attributes Name and Description
caplin.workbench.model.PriceGenerator(Array pFieldNames)

Method Summary

Attributes Name and Description
void generate(Map mSeeds)

Add the randomly generated number to all defined fields Makes prices movements consistent across bid/ask.

Constructor Detail

caplin.workbench.model.PriceGenerator(Array pFieldNames)

Parameters
Array pFieldNames A list of field names that should be updated randomly.

Method Detail

void generate(Map mSeeds)

Add the randomly generated number to all defined fields Makes prices movements consistent across bid/ask. e.g. 1.1123 -> 1.1135

Parameters
Map mSeeds A map of seed values to base the update on.