BitShares Forum

Main => General Discussion => Topic started by: yvv on July 15, 2016, 02:10:15 pm

Title: How was this trade possible?
Post by: yvv on July 15, 2016, 02:10:15 pm
http://cryptofresh.com/tx/e1aeedb37df58fe044195e39051983819ba24e48

At a time of transaction market price was around 4100.

Title: Re: How was this trade possible?
Post by: nmywn on July 15, 2016, 08:29:16 pm
Looks like nice found for trolls.

Here: http://cryptofresh.com/tx/126594bc8f069c43b079b1e11002bec96abb4115 i've tryed buy for 300 000 but:

150,000.00000   0.00000002   0.00300   15/07 22:58:33 <= second try, same result
150,000.00000   0.00000002   0.00300   15/07 22:49:30

Here np: http://cryptofresh.com/tx/5f2a6b19f1bf982c2860e58b31adc42b7d2fc7c8

3,000.00000   0.000001   0.00300   15/07 22:07:27

Isn't this should be execute for lower possible price?
Title: Re: How was this trade possible?
Post by: xeroc on July 18, 2016, 10:48:09 am
There is an open issue report on githib that discussed partial dust orders .. i am quite sure this is what happend to you
Title: Re: How was this trade possible?
Post by: nmywn on July 18, 2016, 03:22:21 pm
@xeroc
http://cryptofresh.com/b/7971599

I want 1 BTSR for 11 BTS
Sell orders:
(http://i.imgur.com/rvi1xSQ.png)

i should get: 11/8.999 = ~1,2223
So lets try:
(http://i.imgur.com/VjyCHpr.png)

How much i bought?  0,9999+0,2224 =  1,2223 which is correct
Did i bypassed orders? no:
(0.9999+260.5991) − (0.2224+0.9999) = 260,3767 correct  - look sell orders after trade

9.00135 is bullshit, calculation error. Trade was correct.

edit:
Maybe would be not bad idea to set minimal order  ammount to prevent  "24hour change %" manipulations, which is very cheap now.
Title: Re: How was this trade possible?
Post by: pc on July 18, 2016, 05:18:53 pm
@xeroc
http://cryptofresh.com/b/7971599

I want 1 BTSR for 11 BTS
Sell orders:
(http://i.imgur.com/rvi1xSQ.png)

i should get: 11/8.999 = ~1,2223
So lets try:
(http://i.imgur.com/VjyCHpr.png)

How much i bought?  0,9999+0,2224 =  1,2223 which is correct
Did i bypassed orders? no:
(0.9999+260.5991) − (0.2224+0.9999) = 260,3767 correct  - look sell orders after trade

9.00135 is bullshit, calculation error. Trade was correct.

edit:
Maybe would be not bad idea to set minimal order  ammount to prevent  "24hour change %" manipulations, which is very cheap now.

2.0019 BTS / .2224 BTSR = 9.00134892 BTS/BTSR is the price at which the second trade was executed.
At a price of 8.999 BTS/BTSR you would have received 2.0019 / 8.999 = .22245805, but BTSR has only 4 decimals precision, that's why it was rounded down.
Works as designed.
Title: Re: How was this trade possible?
Post by: nmywn on July 18, 2016, 06:18:44 pm
Why displayed trade price must be calculated? Price was known before the trade it was 8.999. Is there any reason why not use that to display last market trades?
Title: Re: How was this trade possible?
Post by: pc on July 18, 2016, 08:50:57 pm
After the trade has happened the original orders no longer exists, only the trade as it was executed.
What the "correct" price is lies in the eye of the beholder I suppose.
With such low volume orders a measurable price difference due to rounding errors is to be expected. Note that the actual difference in value is around 1/1000th of a US cent.
Title: Re: How was this trade possible?
Post by: nmywn on July 19, 2016, 01:36:31 am
Such a little lie is not a problem when under my balance i have correct value. I prefer to be lied by the interface in this case.
Must be a way to do this right.
Thx for great explanation.