I need a small customization of the Zocalo prediction market software ([url removed, login to view]).
You can get the source code from: [url removed, login to view]
The customization I need is the following: I need the software to accept odd prices (with up to 3 digits behind the . ; for example: [url removed, login to view]) for binary markets (book markets). At the moment only even prices are accepted.
I have the following information from the author of this software, on how to achieve this:
"The class Price uses an underlying BigDecimal, which has the scale that controls the printing precision. Price's ancestor Quantity knows how to set the BigDecimal's scale, so what you need is an additional constructor for Price that takes a scale, and calls setScale() reflexively."
As I am not too well versed in Java, I need someone to do these changes for me or more precisely tell me what to change in which files to achieve the calculation of odd prices. (Even prices are too imprecise for my needs.)