Template real-time trading mechanism.