Closed lealife closed 5 years ago
what is your question?
@objectt 比如卖价10块, 买价11块, 结果成交价是11块, 不应该是10块吗?
When you "sell"(taker), your order is matched with the highest "buying" price(maker).
Even the seller price is less than the buyer price? And choose the buyer price which is greater than seller price as the deal price ?
@lealife Yes, that is correct. It chooses the "BEST" price. (Lowest price when buying; Highest price when selling)
Got it!
https://github.com/viabtc/viabtc_exchange_server/blob/b720f56b3176142e6c39f4fb8d56a514de215819/matchengine/me_market.c#L364-L385
execute_limit_ask_order 的taker是卖, maker是买
比如卖价10块, 买价11块, 结果成交价是11块, 不应该是10块吗?