<p>Its exactly as you state in the third paragraph.</p>

<p>If you (limit) sell 1 BTC for $1000, you would expect to get $1000. But if someone just placed an order to buy 0.5 BTC for $1050, you will sell to that guy first (so only half of your order) and will receive $525 for that. The other 0.5 BTC you want to sell, sells for $500 (so $1000 / BTC) if someone has that order. So you receive $1025 in total (but fees need to be subtracted), more then you expected. </p>

<p>The same happens when you buy 1 BTC at $1050. If someone just placed an order to sell 0.5 BTC at $1000, you buy that half coin first for $500. The other 0.5 BTC you ordered is bought for $525. So in total you spent $1025 instead of $1050, but you will receive a whole BTC. </p>

CC BY-SA 3.0
2014-04-23T11:10:14.480Z
2014-04-23T11:10:14.480Z
Mathias711
<p>When there is some price overlap, i.e an ask and a higher priced bid, who will get the difference? In other words, will the seller get an "extra", or the buyer a "discount"? I'm interested in BTC-e mainly, but general knowledge about exchanges is useful too.</p>

<p>I looked around here and found similar questions, such as <a href="https://bitcoin.stackexchange.com/questions/21310/orders-and-fills-are-confusing">this one</a>, <a href="https://bitcoin.stackexchange.com/questions/8187/when-btc-is-traded-at-a-mt-gox-or-similar-what-is-the-algorithm-for-matching-b">this one</a>, and <a href="https://bitcoin.stackexchange.com/questions/9832/will-i-pay-bid-price-or-lowest-necessary-amount">this one</a>, but still I don't fully understand how it works. </p>

<p><a href="https://bitcoin.stackexchange.com/a/21318/15404">This answer</a> seems to suggest that the effective price will be that of the order that was in the book, the one placed first. So, assuming volumes match, an ask at $1000 with a bid at $1050 will be filled at $1000 if the ask was placed first, or at $1050 if the bid was placed first. </p>

<p><a href="https://bitcoin.stackexchange.com/a/8221/15404">Here</a> it's stated that "the exchange will match the buy order with the lowest sell orders", but it's not clear to me if that's the case just in the example given in the question, or always. <a href="https://bitcoin.stackexchange.com/a/9833/15404">This other one</a> agrees with the other two, but doesn't say what happens in the opposite case (swapping bids and asks).</p>

CC BY-SA 3.0
2014-04-23T17:41:48.547Z
I later found a question with a very detailed [answer](http://bitcoin.stackexchange.com/a/20759/15404) that confirms what Mathias711 answered here.
Juan
<exchanges><btce><exchange-order>
How are BTC-e orders filled?
Juan
# How are BTC-e orders filled?

(Asked by: username_0 on 2014-04-23)

When there is some price overlap, i.e an ask and a higher priced bid, who will get the difference? In other words, will the seller get an "extra", or the buyer a "discount"? I'm interested in BTC-e mainly, but general knowledge about exchanges is useful too.

I looked around here and found similar questions, such as [this one](https://bitcoin.stackexchange.com/questions/21310/orders-and-fills-are-confusing), [this one](https://bitcoin.stackexchange.com/questions/8187/when-btc-is-traded-at-a-mt-gox-or-similar-what-is-the-algorithm-for-matching-b), and [this one](https://bitcoin.stackexchange.com/questions/9832/will-i-pay-bid-price-or-lowest-necessary-amount), but still I don't fully understand how it works.

[This answer](https://bitcoin.stackexchange.com/a/21318/15404) seems to suggest that the effective price will be that of the order that was in the book, the one placed first. So, assuming volumes match, an ask at $1000 with a bid at $1050 will be filled at $1000 if the ask was placed first, or at $1050 if the bid was placed first.

[Here](https://bitcoin.stackexchange.com/a/8221/15404) it's stated that "the exchange will match the buy order with the lowest sell orders", but it's not clear to me if that's the case just in the example given in the question, or always. [This other one](https://bitcoin.stackexchange.com/a/9833/15404) agrees with the other two, but doesn't say what happens in the opposite case (swapping bids and asks).

**Tags:** exchanges, btce, exchange-order

> **Comments:**
> **username_0**: I later found a question with a very detailed [answer](http://bitcoin.stackexchange.com/a/20759/15404) that confirms what username_1 answered here.  

---

## 1 answers

### Answer by username_1 on 2014-04-23. Score: 1 | Accepted answer

Its exactly as you state in the third paragraph.

If you (limit) sell 1 BTC for $1000, you would expect to get $1000. But if someone just placed an order to buy 0.5 BTC for $1050, you will sell to that guy first (so only half of your order) and will receive $525 for that. The other 0.5 BTC you want to sell, sells for $500 (so $1000 / BTC) if someone has that order. So you receive $1025 in total (but fees need to be subtracted), more then you expected.

The same happens when you buy 1 BTC at $1050. If someone just placed an order to sell 0.5 BTC at $1000, you buy that half coin first for $500. The other 0.5 BTC you ordered is bought for $525. So in total you spent $1025 instead of $1050, but you will receive a whole BTC.


---

