Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 08:31:04 +0000



Post From: Quantity precision not exact

[2023-03-03 11:38:55]
User251043 - Posts: 46
Hi,

I send a Limit Buy order to the Exchange server and it is accepted and filled later.

The order amount is 0.005, and the server accepts it perfectly; later the order is filled (0.005). The problem is this: my SC terminal insists that the quantity is not 0.005 (the one I typed, the one sent to the server and the one executed in reality), but SC shows me an order fill of 0.004999999999999999, so SC thinks there's a remaining quantity of 8,6e-19. SC recalculate the e-19 as "filled" and then types an order fill triangle of 8,6e-19, so when I open a position of 0.005, instead of seeing 1 triangle, I see 2 triangles. See the attached file. It's very difficult to review the session.

What can I adjust in settings to avoid having that e-19 positions? I suppose it's a problem about floating numbers, but it's quite difficult to follow the session.

Thank you very much.
imageimagen_2023-03-03_123126346.png / V - Attached On 2023-03-03 11:31:28 UTC - Size: 7.01 KB - 68 views
Attachment Deleted.