Subscribing and Unsubscribing
You should subscribe for the symbol before placing order.
Sample configuration:
com.apama.fix.SessionConfiguration("EBSGW_TRADE_DATA",
{"FixChannel":"FIX_CHANNEL","OrderManager.updateKeyParamsOnStateChange":"true"})
The EBS FIX 4.4 adapter uses the CMF MDA MBP(com.apama.md.D), MBO(com.apama.md.O) and BBA(com.apama.md.BBA) streams to publish the EBS marketData . For EBS "PriceDepth Book" updates, you must be subscribed to MBP(com.apama.md.D) stream. For "MultiLevel PriceDepth Book" updates, you must be subscribed to MBO(com.apama.md.O) stream. With BBA stream, you will receive the "top of book" updates of EBS "PriceDepth Book".
You can also do the subscription for specific quantity by giving the quantity value in control parameter "QUANTITY_RUNGS", and it is supported only for EBS "MultiLevel PriceDepth Book".
Example:
subscription - EUR/USD(symbol) with 15000000 quantity rungs,
com.apama.session.CtrlParams controlParams := new
com.apama.session.CtrlParams;
controlParams.addParam("QUANTITY_RUNGS","15000000")
if customer is interested to subscribe non-aggregated PriceDepth Book then they must use MBO stream with below control parameters.
com.apama.session.CtrlParams controlParams := new
com.apama.session.CtrlParams; controlParams.addParam("1300","D")
controlParams.addParam("265","1") for Incremental updates. If not
specified it will always get a Snapshot update.