Improve matching engine interface

Improve the matching engine interface so that the trading system does not need to separately maintain duplicate information.