dexwebapp icon indicating copy to clipboard operation
dexwebapp copied to clipboard

Rounding Error bug

Open cryptopops opened this issue 4 years ago • 2 comments

array(14) { ["hash"]=> string(77) "...." ["clientOrderId"]=> string(77) "12209490335481617096546500504529270100552381156474367780605960141827062579527" ["size"]=> string(19) "2157750996491900000" ["volume"]=> string(18) "830300425699100000" ["price"]=> string(8) "0.384800" ["filledSize"]=> string(1) "0" ["filledVolume"]=> string(1) "0" ["filledFee"]=> string(1) "0" ["status"]=> string(10) "processing" ["validSince"]=> int(1590998149) ["validUntil"]=> int(1591088149) ["createdAt"]=> int(1590998150754) ["side"]=> string(4) "SELL" ["market"]=> string(7) "DXD-ETH"

string18 / string19 is 0.384799, yet price is 0.384800. Please fix the rounding error bug.

cryptopops avatar Jun 01 '20 08:06 cryptopops

Could you provide more information? What is the endpoint?

xiaowheat avatar Jun 01 '20 08:06 xiaowheat

https://api.loopring.io/api/v2/orders

cryptopops avatar Jun 01 '20 08:06 cryptopops