BitShares Forum

Main => Technical Support => Topic started by: ncinic on February 11, 2016, 04:06:27 pm

Title: Sell and buy order overlap!
Post by: ncinic on February 11, 2016, 04:06:27 pm
What would happen if:

Some decided to sell an asset and buy the asset with BTS for the same  price?
What if someone places an order to sell and an order to buy that was the same?
What if someone placed and order to sell  ASSET @ 20 BTS and an order to buy ASSET @ 30 BTS, so that the orders overlap.

I hope I made myself clear. :)

How will the blockchain deal with this, and has this been tested by someone?


Title: Re: Sell and buy order overlap!
Post by: yvv on February 11, 2016, 04:11:45 pm
Why don't you go ahead, and test it yourself?
Title: Re: Sell and buy order overlap!
Post by: testz on February 11, 2016, 04:12:56 pm
What would happen if:

Some decided to sell an asset and buy the asset with BTS for the same  price?
What if someone places an order to sell and an order to buy that was the same?
What if someone placed and order to sell  ASSET @ 20 BTS and an order to buy ASSET @ 30 BTS, so that the orders overlap.

I hope I made myself clear. :)

How will the blockchain deal with this, and has this been tested by someone?

You can do your investigation at the test network here  :) : http://testnet.bitshares.eu
Title: Re: Sell and buy order overlap!
Post by: Xeldal on February 11, 2016, 05:21:38 pm
Some decided to sell an asset and buy the asset with BTS for the same  price?
What if someone places an order to sell and an order to buy that was the same?
This is normal operation.  They would match and a trade would take place at that price.  If i understand the question. 

What if someone placed and order to sell  ASSET @ 20 BTS and an order to buy ASSET @ 30 BTS, so that the orders overlap.

I think whichever order was received first by the signing witness for that block would be the price it was executed at.
If the buy @ 30 was received before the sell.  the trade would happen at 30
If the sell @ 20 was received before the buy.  the trade would happen at 20
Title: Re: Sell and buy order overlap!
Post by: ncinic on February 11, 2016, 05:30:07 pm
okay thank you for the info