BitShares Forum

Main => Technical Support => Topic started by: vegolino on October 09, 2014, 12:38:38 pm

Title: Problem with buying BitBTC
Post by: vegolino on October 09, 2014, 12:38:38 pm
I have just bought some BitBTC by clicking on the first row of Sell BitBTC Orders. Amount in BTSX was - 20,001.99993 BTSX. Order was executed and I received 1.57062294 BTC or equivalent 19,999.99999 BTSX. In Open Orders there was still order for difference 20,001.99993 - 19,999.99999 = 1.99994 BTSX . I don't know why is this the case, but I canceled it and had to pay 0.5 BTSX for cancellation fee.
I would like you to know that I am not complaining about 0.5 BTSX cancelation fee as it is not much, but I think that it should not happen as I clicked on Sell BitBTC Orders and was ready to buy full amount that somebody was selling. This is not about me, but about our future users.
Aloha to all  :)
Title: Re: Problem with buying BitBTC
Post by: vegolino on October 11, 2014, 10:41:39 am
I will gladly pay to anybody 20BTSX for the answer.  :)
Title: Re: Problem with buying BitBTC
Post by: xeroc on October 11, 2014, 10:50:01 am
Github issue open on that one .. its because prices are floats whereas btsx larimers are integer .. its a cs issue


https://bitsharestalk.org/index.php?topic=9748.0


Edit: keep the 20btsx
Title: Re: Problem with buying BitBTC
Post by: bytemaster on October 11, 2014, 11:21:28 am
Two factors.

When clicking an order it adds some overlap in the price. 

Rounding errors are a fact of life. 
Title: Re: Problem with buying BitBTC
Post by: xeroc on October 11, 2014, 12:52:22 pm
Rounding errors are a fact of life.
quick example: pi=3  :o
Title: Re: Problem with buying BitBTC
Post by: vegolino on October 11, 2014, 02:01:44 pm
Xeroc and Bytemaster thank you for your answers.