Take the 2-minute tour ×
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

I am building a service similar to the BullionVault where users can buy and sell bullion. They will be placing their Buy and Sell orders on the service. Matched orders will get executed.

My question is this:
When there is a matching buy and sell order, where, the selling price is significantly lower than the buy orders buying price, how should the price be determined?

These are the Options I could think of :

  • Either the buyers price is taken or the sellers price is taken and one of them gets the benefit.
  • The difference between prices is split in half and both of them benefit.
  • The exchange buys from the seller and sells to the buyer in real time, so the difference is picked up by the exchange.

As this is similar to how the stock markets work, I am trying to understand how this type of a trade is executed in those exchanges.

share|improve this question

1 Answer 1

Your question is generic about matching engines, you should googlize about it or/and read a good book on market microstructure like Market Microstructure in Practice.

In short to answer to your question: the seller or the buyer came first in the market inserting a limit order, providing liquidity to other participants. Then came the other side with a marketable order, consuming liquidity. The outcome of a consumer matching a provider generates a trade at the price of the limit order.

It is about who came first in the market. When you provide liquidity, you

  • set the price of a potential future trade,
  • pay (the bid-ask spread) less than if you consume liquidity,
  • disclose your interest,
  • are exposed to adverse selection.
share|improve this answer
    
would be nice to add a "disclaimer" :-) –  Matt Wolf May 12 at 5:50
    
@MattWolf my name is not that common: I am almost surely the author of "Market Microstructure in Practice" ;{)} –  lehalle May 12 at 16:21
    
"almost surely" is trademarked by Steven Shreve (CMU) already ;-) –  Matt Wolf May 12 at 16:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.