FRAMES NO FRAMES | ||||||
| ||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |
Member Summary | |
---|---|
wildcard string | id
|
wildcard string | name
|
dictionary<string, string > | metadata
|
com.apama.sor.oms.OrderState | state
|
com.apama.oms.NewOrder | order
|
com.apama.oms.OrderUpdate | update
|
com.apama.sor.oms.OrderDataView | dvOrder
|
wildcard boolean | fillsFromLastShares
|
wildcard context | mainContext
|
wildcard context | orderContext
|
Action Summary | |
---|---|
boolean |
amend(float price, string type, integer quantity, dictionary<string, string > extraParams, com.apama.sor.oms.ChildOrderNormaliserInterface normaliser)
Amend the price or quantity of the order. |
boolean |
cancel(dictionary<string, string > extraParams, com.apama.sor.oms.ChildOrderNormaliserInterface normaliser)
Cancel the order. The action creates a com.apama.oms.CancelOrder event which is routed, the state of the OrderContainer is changed to pending cancel and the dataview item is updated. |
void |
create(string id, context mainContext, context orderContext, dictionary<string, string > metadata, boolean fillsFromLastShares, string dvName)
Constructor to create a new order container from a com.apama.oms.NewOrder. |
float |
getAvgPrice()
|
dictionary<string, string > |
getExtraParams()
|
string |
getId()
|
float |
getLastPrice()
|
integer |
getLastShares()
|
string |
getMarketId()
|
string |
getMetadata(string key, string def)
|
com.apama.oms.NewOrder |
getOrder()
|
float |
getPrice()
|
integer |
getQty()
|
integer |
getQtyExecuted()
|
integer |
getQtyRemaining()
|
string |
getServiceId()
|
string |
getSide()
|
com.apama.sor.oms.OrderState |
getState()
|
string |
getSymbol()
|
string |
getType()
|
com.apama.oms.OrderUpdate |
getUpdate()
|
void |
logAmendOrder(string header, com.apama.oms.AmendOrder amendOrder)
Utility to pretty print an AmendOrder event to log file. |
void |
logCancelOrder(string header, com.apama.oms.CancelOrder cancelOrder)
Utility to pretty print a CancelOrder event to log file. |
void |
logNewOrder(string header, com.apama.oms.NewOrder newOrder)
Utility to pretty print a NewOrder event to log file. To print the current order details used logNewOrder. |
void |
logOrder(string header)
Utility action to pretty print the order details for the child order container. |
void |
logOrderUpdate(string header, com.apama.oms.OrderUpdate update)
Utility to log an order update. |
void |
logUpdate(string header)
Utility action to pretty print the last order update for the child order container. |
void |
restart()
Reload the order details from a snapshot of the current order details. Sets up the update listeners and creates the dataview for the order. This method should be called after the set() action. |
void |
set(com.apama.sor.oms.OrderState state, com.apama.oms.NewOrder order, com.apama.oms.OrderUpdate update)
Set the order details that are usually built up during the lifetime execution of the order i.e. state, com.apama.oms.NewOrder values, and com.apama.oms.OrderUpdate. Used for reloading of the details before starting the update listeners. |
void |
submit(string symbol, float price, string side, string type, integer quantity, string serviceId, string marketId, string ownerId, dictionary<string, string > extraParams, com.apama.sor.oms.ChildOrderNormaliserInterface normaliser)
Submit the order based on the parameters passed into the action. |
Member Detail |
---|
com.apama.sor.oms.OrderDataView dvOrder
wildcard boolean fillsFromLastShares
wildcard string id
wildcard context mainContext
dictionary<string, string > metadata
wildcard string name
com.apama.oms.NewOrder order
wildcard context orderContext
com.apama.sor.oms.OrderState state
com.apama.oms.OrderUpdate update
Action Detail |
---|
boolean amend(float price, string type, integer quantity, dictionary<string, string > extraParams, com.apama.sor.oms.ChildOrderNormaliserInterface normaliser)Amend the price or quantity of the order.
boolean cancel(dictionary<string, string > extraParams, com.apama.sor.oms.ChildOrderNormaliserInterface normaliser)Cancel the order. The action creates a com.apama.oms.CancelOrder event which is routed, the state of the OrderContainer is changed to pending cancel and the dataview item is updated.
void create(string id, context mainContext, context orderContext, dictionary<string, string > metadata, boolean fillsFromLastShares, string dvName)Constructor to create a new order container from a com.apama.oms.NewOrder.
float getAvgPrice()
dictionary<string, string > getExtraParams()
string getId()
float getLastPrice()
integer getLastShares()
string getMarketId()
string getMetadata(string key, string def)
com.apama.oms.NewOrder getOrder()
float getPrice()
integer getQty()
integer getQtyExecuted()
integer getQtyRemaining()
string getServiceId()
string getSide()
com.apama.sor.oms.OrderState getState()
string getSymbol()
string getType()
com.apama.oms.OrderUpdate getUpdate()
void logAmendOrder(string header, com.apama.oms.AmendOrder amendOrder)Utility to pretty print an AmendOrder event to log file.
void logCancelOrder(string header, com.apama.oms.CancelOrder cancelOrder)Utility to pretty print a CancelOrder event to log file.
void logNewOrder(string header, com.apama.oms.NewOrder newOrder)Utility to pretty print a NewOrder event to log file. To print the current order details used logNewOrder.
void logOrder(string header)Utility action to pretty print the order details for the child order container.
void logOrderUpdate(string header, com.apama.oms.OrderUpdate update)Utility to log an order update.
void logUpdate(string header)Utility action to pretty print the last order update for the child order container.
void restart()Reload the order details from a snapshot of the current order details. Sets up the update listeners and creates the dataview for the order. This method should be called after the set() action.
void set(com.apama.sor.oms.OrderState state, com.apama.oms.NewOrder order, com.apama.oms.OrderUpdate update)Set the order details that are usually built up during the lifetime execution of the order i.e. state, com.apama.oms.NewOrder values, and com.apama.oms.OrderUpdate. Used for reloading of the details before starting the update listeners.
void submit(string symbol, float price, string side, string type, integer quantity, string serviceId, string marketId, string ownerId, dictionary<string, string > extraParams, com.apama.sor.oms.ChildOrderNormaliserInterface normaliser)Submit the order based on the parameters passed into the action.
FRAMES NO FRAMES | ||||||
| ||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |