TT CORE SDK 2.0.1.1
TT CORE SDK documentation
|
Interface for listening to order and position events. There is one OrderBookEventHandler set in the SDK. All order events will go to this handler unless a specific handler is set for specific orders on an order by order basis. More...
#include <order.h>
Public Member Functions | |
virtual | ~IOrderBookEventHandler () noexcept=default |
virtual void | OnPositionUpdate (const Position &updatedPosition) |
Callback delivering position updates. | |
virtual void | OnAccountDownloadEnd (const uint64_t accountId) |
Indicates the given account have been synchronized with the realtime streams, orders and positions have been downloaded. | |
virtual void | OnAccountDownloadFailed (const uint64_t accountId, const char *message) |
Indicates the given account orders and positions downloads have failed and the account if not usable. This is a critical failure. | |
virtual void | OnOrderBookDownloadEnd () |
Indicates all orders and positions for all accounts are downloaded and synchronized with the realtime stream. | |
virtual void | OnRiskReserved (const uint64_t instrumentId, const uint64_t accountId, const RiskSide side, const bool successful) |
Callback for a reserve risk request. Orders sent before a PR is acked will be rejected. | |
virtual void | OnRiskReleased (const uint64_t instrumentId, const uint64_t accountId, const RiskSide side, const bool successful) |
Callback for a release reserve risk request. | |
Public Member Functions inherited from ttsdk::IOrderEventHandler | |
virtual | ~IOrderEventHandler () noexcept=default |
virtual void | OnExecutionReport (OrderPtr order, ExecutionReportPtr execRpt)=0 |
Callback delivering execution report messages. | |
virtual void | OnEpiqUpdate (OrderPtr order, double epiq) |
virtual void | OnExportValuesUpdate (OrderPtr order, const ttsdk::ExportValues &exports) |
virtual void | OnReject (OrderPtr order, RejectResponsePtr rejResp)=0 |
Callback delivering order reject messages. | |
virtual void | OnSendFailed (OrderPtr order, const OrderProfile &profile, const SendCode code)=0 |
Callback fired when a request delivery surpasses the timeout threshold. | |
virtual void | OnUnsubscribed (const char *orderId)=0 |
Callback fired when the unsubscribe request is complete and it is safe to. | |
Interface for listening to order and position events. There is one OrderBookEventHandler set in the SDK. All order events will go to this handler unless a specific handler is set for specific orders on an order by order basis.
|
virtualdefaultnoexcept |