Skip to content
All library documents

Pre-Trade Order Controls for Quantity, Flow, and Order Limits

Article Quant course library

Summary

The document explains a pre-trade risk module that checks each order before it is sent to a trading interface. Its rules include requiring positive order quantity and limiting the size of an individual order, total daily filled quantity, order flow, active orders, and daily cancellations. An order passes onward only when all configured checks are satisfied, after which the flow counter increases.

The module is started after connecting to a trading gateway; startup loads configured limits and enables the checks. Users can change limits in a graphical interface and save them for the engine to reload. Stopping the module disables checks and records the state change in logs. This is an operational description of configurable front-end controls, not a discussion of how to choose thresholds, handle rejected orders, or manage risks beyond the listed limits.

Key ideas

  • The module evaluates orders before they are transmitted through the trading API.
  • Rules can constrain individual order size, daily filled quantity, order flow, active orders, and cancellations.
  • Orders that meet all active checks are forwarded, and the flow counter is incremented.
  • Starting the module loads saved limits, while stopping it disables the checks.
  • The document describes configuration and operation but does not recommend specific limit values.

Tags

From a private course collection; the original is not published.