Assembly: Teraspaces.QWFIX.OrderGateway (in Teraspaces.QWFIX.OrderGateway.dll) Version: 2.5.0.0 (2.5.0.0)
Syntax
| C# | Visual Basic | Visual C++ | J# |
public delegate int OrderGatewayGetRouteHandler( FIXMessage message, int defaultRoute )
Public Delegate Function OrderGatewayGetRouteHandler ( _ message As FIXMessage, _ defaultRoute As Integer _ ) As Integer
public delegate int OrderGatewayGetRouteHandler( FIXMessage^ message, int defaultRoute )
/** @delegate */ public delegate int OrderGatewayGetRouteHandler( FIXMessage message, int defaultRoute )
Parameters
- message
- FIXMessage
The incoming FIX message (from buy side).
- defaultRoute
- Int32
The default route (see remarks).
Return Value
The route override, which corresponds to a EngineSessionID of a valid session in the FIXEngine.
Remarks
A special value of "-1" represents "invalid route".
This delegate is used by both default route handler (statically implemented by application) or Visual Lambda route handler (can be both static or dynamicaly customized during run-time).
The message parameter is the order (or order cancel/modification) message from buy side.
If OrderGatewayGetRouteHandler is used in Visual Lambda engine, multiple handlers can be "stacked" together. The handlers will be called in the same sequence they are defined in the GUI configuration tools. The return value of the previous handler will be the value of input defaultRoute parameter of the next handler.
It is recommended that the implementation return defaultRoute if it doesn't know how to generate the route. That will enable multiple handlers work together, with each handler only generating the route it is interested in.