Author Topic: How was this trade possible?  (Read 3327 times)

0 Members and 1 Guest are viewing this topic.

Offline nmywn

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
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.

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
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.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline nmywn

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
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?
« Last Edit: July 18, 2016, 08:01:12 pm by nmywn »

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
@xeroc
http://cryptofresh.com/b/7971599

I want 1 BTSR for 11 BTS
Sell orders:


i should get: 11/8.999 = ~1,2223
So lets try:


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.
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline nmywn

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
@xeroc
http://cryptofresh.com/b/7971599

I want 1 BTSR for 11 BTS
Sell orders:


i should get: 11/8.999 = ~1,2223
So lets try:


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.
« Last Edit: July 18, 2016, 03:29:43 pm by nmywn »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
There is an open issue report on githib that discussed partial dust orders .. i am quite sure this is what happend to you

Offline nmywn

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
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?
« Last Edit: July 15, 2016, 09:08:24 pm by nmywn »

Offline yvv

  • Hero Member
  • *****
  • Posts: 1186
    • View Profile
« Last Edit: July 15, 2016, 05:54:04 pm by yvv »