DTC Protocol Discussion Forum
- DTC Protocol Discussion Forum |
- Search Board |
- Control Panel |
- View My Posts / Threads |
- Direct Messages
Date/Time: Fri, 29 Nov 2024 17:28:13 +0000
Post From: Market depth windows for Forex
[2016-06-02 17:10:54] |
vbmithr - Posts: 204 |
I fixed the issue by setting the amount as a multiple of the minimum tradable quantity, for example, if the minimum tradable amount of LTC is 0.1, 1 LTC is 10 units of LTC. Now I have rounding errors, because like 0.6 / 0.1 = 5.99999999999999911 (instead of 6 in reality) and you probably display this amount truncated instead of rounded. That's exactly why I systematically wanted to avoid using floats in the beginning. Now I'm probably going to send rounded values… :/ |