OrderMatcher
StockSharp.MatchingEngine
Order matcher implementation.
实现: IOrderMatcher
方法
GetMarketPrice(Sides, IOrderBook) : decimal?
Get the best execution price for a market order.
- side
- Side of the market order (buy/sell).
- book
- Order book to query.
返回值: Best available price for the market order, or null if book is empty.
Match(EmulatorOrder, IOrderBook, MatchingSettings) : MatchResult
Try to match an order against the order book.
- order
- Order to match.
- book
- Order book to match against.
- settings
- Matching settings.
返回值: Match result.
WouldCross(EmulatorOrder, IOrderBook) : bool
Check if order would cross the book (for post-only validation).
- order
- Order to check.
- book
- Order book to check against.
返回值: True if the order would cross the book, otherwise false.