OnixS EBS BrokerTec Market Data and Trading Handler for C++  2.14.1.0
Public Member Functions | List of all members
TradeListener Class Referenceabstract

Defines an interface through which the Handler notifies subscribers about results of trading operations. More...

Public Member Functions

virtual void onEnterOrderAck (const OrderRecord &order, OrderStatus::Enum status)=0
 Is called when orders are accepted by exchange. More...
 
virtual void onEnterOrderFailed (const OrderRecord &order, const ErrorContext &error)=0
 Is called when orders are rejected by exchange. More...
 
virtual void onCancelOrderAck (const OrderRecord &order, int64 cancelledQuantity)=0
 Is called when order are cancelled by exchange. More...
 
virtual void onCancelOrderFailed (const OrderRecord &order, const ErrorContext &error)=0
 Is called when order cancellation are rejected by exchange. More...
 
virtual void onAlterOrderAck (const OrderRecord &order, int64 alteredQuantity)=0
 Is called when order modification are accepted by exchange. More...
 
virtual void onAlterOrderFailed (const OrderRecord &order, const ErrorContext &error)=0
 Is called when order modification are rejected by exchange. More...
 
virtual void onWorkupChanged (const OrderRecord &agressivePart, const OrderRecord &passivePart, WorkupState::Enum workupState, WorkupChangeReason::Enum workupChangeReason, const Series &series, const Price &price)=0
 Is called when work-up state transition occured (BI99). More...
 
virtual void onOrderDepthSnapshot (const Series &series, uint32 ordersCount, const OrderRecord **orders)=0
 Is called when order depth snapshot received (BO36). More...
 
virtual void onOrderChangedByExchange (ChangeReason::Enum changeReason, const OrderRecord &order, const Price &price, int64 quantityDifference)=0
 Is called when an order is deleted or modified by the system (BI67). More...
 

Detailed Description

Defines an interface through which the Handler notifies subscribers about results of trading operations.

Member Function Documentation

virtual void onAlterOrderAck ( const OrderRecord order,
int64  alteredQuantity 
)
pure virtual

Is called when order modification are accepted by exchange.

Parameters
orderOrder record.
alteredQuantityAltered quantity.
virtual void onAlterOrderFailed ( const OrderRecord order,
const ErrorContext error 
)
pure virtual

Is called when order modification are rejected by exchange.

Parameters
orderOrder record.
errorError context.
virtual void onCancelOrderAck ( const OrderRecord order,
int64  cancelledQuantity 
)
pure virtual

Is called when order are cancelled by exchange.

Parameters
orderOrder record.
cancelledQuantityCancelled quantity.
virtual void onCancelOrderFailed ( const OrderRecord order,
const ErrorContext error 
)
pure virtual

Is called when order cancellation are rejected by exchange.

Parameters
orderOrder record.
errorError context.
virtual void onEnterOrderAck ( const OrderRecord order,
OrderStatus::Enum  status 
)
pure virtual

Is called when orders are accepted by exchange.

Parameters
orderOrder record.
statusOrder status.
virtual void onEnterOrderFailed ( const OrderRecord order,
const ErrorContext error 
)
pure virtual

Is called when orders are rejected by exchange.

Parameters
orderOrder record.
errorError context.
virtual void onOrderChangedByExchange ( ChangeReason::Enum  changeReason,
const OrderRecord order,
const Price price,
int64  quantityDifference 
)
pure virtual

Is called when an order is deleted or modified by the system (BI67).

Parameters
changeReasonIndicates why the order has been modified.
orderOrder record.
pricePrice.
quantityDifferenceSpecifies how much the total size has been changed. Together with the order.quantity field (which specifies the remaining shown) it is possible to figure out changes in shown versus hidden.
virtual void onOrderDepthSnapshot ( const Series series,
uint32  ordersCount,
const OrderRecord **  orders 
)
pure virtual

Is called when order depth snapshot received (BO36).

Parameters
seriesSeries, Identity.
ordersCountNumber of orders.
ordersArray of orders.
virtual void onWorkupChanged ( const OrderRecord agressivePart,
const OrderRecord passivePart,
WorkupState::Enum  workupState,
WorkupChangeReason::Enum  workupChangeReason,
const Series series,
const Price price 
)
pure virtual

Is called when work-up state transition occured (BI99).

Parameters
agressivePartA "Aggressive Side" of Workup.
passivePartA "Passive Side" of Workup.
workupStateCurrent Workup Phase.
workupChangeReasonIndicates how the workup state was changed.
seriesSeries, Identity.
priceThe Price of the original fill that initiates the Workup is the only Price at which the Workup is active.