Capital Markets Adapters 10.11 | Apama Capital Markets Adapters Documentation 10.11 | BM+F FIX Adapter | Placing order
 
Placing order
BMF orders are preprocessed in support mons and then passed onto primary monitors for further processing. Support mons listens for the orders on serviceId "BMF-FIX". So send the all the oms orders to using this serviceID.
ServiceId to be used for order placing : "BMF-FIX". Appropriate Parties info and account should be filled in the extra parameters.
Examples
# LIMIT orders with validity DAY
com.apama.oms.NewOrder("BMF:1000","WDLF15",20.0,"BUY","LIMIT",100,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002"})

com.apama.oms.AmendOrder("BMF:1000", "BMF-FIX", "WDLF15", 21.0,"BUY", "LIMIT",
300, {"453":"[com.apama.fix.ExecutionReport_Party(\"8\",\"D\",\"7\",[],{}),
com.apama.fix.ExecutionReport_Party(\"LIN\",\"D\",\"54\",[],{}),
com.apama.fix.ExecutionReport_Party
(\"XPROG01\",\"D\",\"36\",[],{})]","1":"1002"})

com.apama.oms.CancelOrder("BMF:1000", "BMF-FIX",
{"453":"[com.apama.fix.ExecutionReport_Party(\"8\",\"D\",\"7\",[],{}),
com.apama.fix.ExecutionReport_Party(\"LIN\",\"D\",\"54\",[],{}),
com.apama.fix.ExecutionReport_Party
(\"XPROG01\",\"D\",\"36\",[],{})]","1":"1002"})
#LIMIT orders with validity GTC
com.apama.oms.NewOrder("BMF:2010","WDLF15",20.0,"BUY","LIMIT",200,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002","59":"1"})

com.apama.oms.AmendOrder("BMF:2010", "BMF-FIX", "WDLF15", 21.0, "BUY","LIMIT", 300,
{"453":"[com.apama.fix.ExecutionReport_Party(\"8\",\"D\",\"7\",[],{}),
com.apama.fix.ExecutionReport_Party(\"LIN\",\"D\",\"54\",[],{}),
com.apama.fix.ExecutionReport_Party
(\"XPROG01\",\"D\",\"36\",[],{})]","1":"1002","59":"1"})

com.apama.oms.CancelOrder("BMF:2010", "BMF-FIX",
{"453":"[com.apama.fix.ExecutionReport_Party(\"8\",\"D\",\"7\",[],{}),
com.apama.fix.ExecutionReport_Party(\"LIN\",\"D\",\"54\",[],{}),
com.apama.fix.ExecutionReport_Party
(\"XPROG01\",\"D\",\"36\",[],{})]","1":"1002"})
#MARKET TO LIMIT orders with validity IOC

com.apama.oms.NewOrder("BMF:13000","WDLF15",0.0,"SELL",
"MARKET WITH LEFTOVER AS LIMIT",100,"BMF-FIX","","","BMF_TRANSPORT",
"","",{"Party0":"8,D,7","Party1":"LIN,D,54",
"Party2":"XPROG01,D,36","1":"1002","59":"3"})
#MARKET WITH PROTECTION orders with validity GTD

com.apama.oms.NewOrder("BMF:24000","WDLF15",0.0,"SELL","MARKET",100,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002",
"59":"6","432":"20111118"})
#MARKET ON AUCTION orders

com.apama.oms.NewOrder("BMF:26000","WDLF15",0.0,"SELL","MARKET",100,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002","59":"A"})
#STOP LIMIT orders with validity GTC

com.apama.oms.NewOrder("BMF:31000","WDLF15",23.1,"BUY","STOP LIMIT",100,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002","59":"1","99":"23.0"})
#STOP with PROTECTION orders with validity GTD

com.apama.oms.NewOrder("BMF:42000","WDLF15",0.0,"BUY","STOP MARKET",100,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002","59":"6",
"432":"20111118","99":"31.4"})
#Minimum Quantity Orders

com.apama.oms.NewOrder("BMF:60000","WDLF15",20.0,"BUY","LIMIT",200,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002","110":"100"})
#Disclosed Quantity Orders

com.apama.oms.NewOrder("BMF:70000","WDLF15",20.0,"BUY","LIMIT",200,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002","111":"100"})
#MARKET ON CLOSE orders

com.apama.oms.NewOrder("BMF:90000","WDLF15",0.0,"SELL","MARKET",100,
"BMF-FIX","","","BMF_TRANSPORT","","",{"Party0":"8,D,7",
"Party1":"LIN,D,54","Party2":"XPROG01,D,36","1":"1002","59":"7"})