99 std::vector<ttsdk::UserParameter>
params;
251 virtual
void OnPositionUpdate(const
Position& updatedPosition) {};
268 virtual void OnRiskReserved(
const uint64_t instrumentId,
const uint64_t accountId,
269 const RiskSide side,
const bool successful) {};
271 virtual void OnRiskReleased(
const uint64_t instrumentId,
const uint64_t accountId,
272 const RiskSide side,
const bool successful) {};
Interface for listening to order and position events. There is one OrderBookEventHandler set in the S...
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....
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 ~IOrderBookEventHandler() noexcept=default
virtual void OnRiskReleased(const uint64_t instrumentId, const uint64_t accountId, const RiskSide side, const bool successful)
Callback for a release reserve risk request.
virtual void OnOrderBookDownloadEnd()
Indicates all orders and positions for all accounts are downloaded and synchronized with the realtime...
virtual void OnAccountDownloadEnd(const uint64_t accountId)
Indicates the given account have been synchronized with the realtime streams, orders and positions ha...
Interface for listening to order events.
virtual void OnExportValuesUpdate(OrderPtr order, const ttsdk::ExportValues &exports)
virtual void OnSendFailed(OrderPtr order, const OrderProfile &profile, const SendCode code)=0
Callback fired when a request delivery surpasses the timeout threshold.
virtual void OnEpiqUpdate(OrderPtr order, double epiq)
virtual ~IOrderEventHandler() noexcept=default
@ INVALID_ACCOUNT_ID_FOR_LEG
@ INVALID_ACCOUNT_FOR_MARKET
@ PRICE_SUBSCRIPTION_REQUIRED
@ ORDER_THROTTLE_EXCEEDED
@ EXCEEDED_PREALLOCATED_RISK_CLIP_SIZE
@ EXCEEDED_PREALLOCATED_RISK
@ PRICE_SUBSCRIPTION_NOT_READY
@ ORDER_MISSING_MARKET_DATA
@ ORDERBOOK_NOT_SYNCHRONIZED
@ CHANGE_ACCOUNT_ID_NOT_ALLOWED
@ ORDER_MISSING_REQUIRED_DATA
@ RESTRICTED_ACCOUNT_ID_FOR_LEG
@ SYNTHETIC_ROUTING_NOT_AVAILABLE
virtual void OnReject(OrderPtr order, RejectResponsePtr rejResp)=0
Callback delivering order reject messages.
virtual void OnUnsubscribed(const char *orderId)=0
Callback fired when the unsubscribe request is complete and it is safe to.
virtual void OnExecutionReport(OrderPtr order, ExecutionReportPtr execRpt)=0
Callback delivering execution report messages.
an interface to interact with the order.
virtual InstrumentPtr GetInstrument() const noexcept=0
virtual bool IsAppsSDKAlgoOrder() noexcept=0
Method which indicates if this order is a SDK Algo order that is/was being managed by this applicatio...
virtual bool UnSubscribeExportValues() noexcept=0
virtual bool IsAlgoOrder() noexcept=0
virtual void SendCancel(const OrderProfile &profile) noexcept=0
virtual const char * GetOrderId() const noexcept=0
virtual void Unsubscribe() noexcept=0
virtual bool SubscribeExportValues() noexcept=0
virtual double GetEpiq() const noexcept=0
virtual void SetParent(SDKAlgoPtr parent=nullptr) noexcept=0
virtual OrderPtr GetPreviousOrder() const noexcept=0
Method which returns the previous order for the use case when TTINT replaces an existing order with a...
virtual void SendNew(const OrderProfile &profile) noexcept=0
virtual ExecutionReportPtr GetCurrentState() const noexcept=0
virtual void SendChange(const OrderProfile &profile) noexcept=0
Definition of an order price/qty change.
uint64_t server_price_time
Price Server timestamp (mdrc_recv_time);.
uint64_t price_subscription_id
uint64_t order_stimulus_received
User listener timestamp (order_stimulus_receieved_oc)
Definition of an order to provide when submitting.
uint64_t server_price_time
Price Server timestamp (mdrc_recv_time);.
ttsdk::MarketId colocation
colocation value for algo orders
uint32_t order_tag_default_id
std::vector< ttsdk::UserParameter > params
specific parameters to set on outgoing algo orders
uint64_t price_subscription_id
uint64_t order_stimulus_received
User listener timestamp (order_stimulus_receieved_oc)
std::vector< uint64_t > leg_account_ids
Specific for ASE spreads to set accounts on different legs. The accounts are set sequentially as prov...
char clearing_acct_override[128]
ttsdk::UserDisconnectAction user_disconnect_action