TT CORE SDK 2.0.2.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
execution_report.h
Go to the documentation of this file.
1/***************************************************************************
2 *
3 * Unpublished Work Copyright (c) 2020
4 * Trading Technologies International, Inc.
5 * All Rights Reserved Worldwide
6 *
7 * * * * S T R I C T L Y P R O P R I E T A R Y * * *
8 *
9 * WARNING: This program (or document) is unpublished, proprietary property
10 * of Trading Technologies International, Inc. and is to be maintained in
11 * strict confidence. Unauthorized reproduction, distribution or disclosure
12 * of this program (or document), or any program (or document) derived from
13 * it is prohibited by State and Federal law, and by local law outside of
14 * the U.S.
15 *
16 ***************************************************************************/
17#pragma once
18
19#include "enums/RejectCode.h"
21#include "enums/OrdStatus.h"
22#include "enums/ExecType.h"
23#include "enums/OrderType.h"
24#include "enums/OrderSide.h"
25#include "enums/TimeInForce.h"
26#include "enums/MarketId.h"
28#include "enums/SynthStatus.h"
31#include "user_parameter.h"
33#include "shared_ptr.h"
34#include "consts.h"
35#include <math.h>
36
37namespace ttsdk
38{
49 {
50 public:
51 explicit ExecutionReport() {};
52 ~ExecutionReport() noexcept {};
53
54 virtual bool IsExternalAction() const noexcept = 0;
55 virtual bool IsFill() const noexcept = 0;
56 virtual bool IsFullFill() const noexcept = 0;
57 virtual bool IsDelete() const noexcept = 0;
58 virtual bool IsReject() const noexcept = 0;
59 virtual bool IsTriggerActivated() const noexcept = 0;
60 virtual bool IsWorking() const noexcept = 0;
61 virtual bool IsAOTCCancel() const noexcept = 0;
62 virtual uint64_t GetTransactionTime() const noexcept = 0;
63
65 virtual const char* GetOrderId() const noexcept = 0;
66 virtual uint64_t GetRequestId() const noexcept = 0;
67 virtual const char* GetExecId() const noexcept = 0;
68 virtual const char* GetUniqueExecId() const noexcept = 0;
69 virtual ttsdk::OrdStatus GetOrderStatus() const noexcept = 0;
70 virtual ttsdk::ExecType GetExecType() const noexcept = 0;
71 virtual ttsdk::OrderType GetOrderType() const noexcept = 0;
72 virtual ttsdk::OrderSide GetSide() const noexcept = 0;
73 virtual ttsdk::TimeInForce GetTimeInForce() const noexcept = 0;
74 virtual ttsdk::SynthStatus GetSynthStatus() const noexcept = 0;
75 virtual double GetPrice() const noexcept = 0;
76 virtual double GetTriggerPrice() const noexcept = 0;
77 virtual double GetOrderQty() const noexcept = 0;
78 virtual double GetLeavesQty() const noexcept = 0;
79 virtual double GetCumQty() const noexcept = 0;
80 virtual double GetDisplayQty() const noexcept = 0;
81 virtual double GetRefreshQty() const noexcept = 0;
82 virtual double GetMinimumQty() const noexcept = 0;
83 virtual uint64_t GetOrderSequence() const noexcept = 0;
84 virtual uint32_t GetClientIp() const noexcept = 0;
86
88 virtual double GetLastFillPrice() const noexcept = 0;
89 virtual double GetLastFillQty() const noexcept = 0;
91 virtual uint64_t GetReceivedFromExchange() const noexcept = 0;
93 virtual bool IsAOTCPositionTransferFill() const noexcept = 0;
95
97 virtual uint64_t GetUserId() const noexcept = 0;
98 virtual uint64_t GetCurrentUserId() const noexcept = 0;
99 virtual uint64_t GetAccountId() const noexcept = 0;
100 virtual const char* GetClearingAccount() const noexcept = 0;
101 virtual uint64_t GetBrokerId() const noexcept = 0;
102 virtual const char* GetSenderSubId() const noexcept = 0;
103 virtual const char* GetSenderLocation() const noexcept = 0;
104 virtual const char* GetConnection() const noexcept = 0;
107 virtual const char* GetParentOrderId() const noexcept = 0;
108 virtual bool IsChildOrder() const noexcept = 0;
110
112 virtual uint64_t GetInstrumentId() const noexcept = 0;
113 virtual ttsdk::MarketId GetMarket() const noexcept = 0;
115
116 virtual uint32_t GetUserParameterCount() const noexcept = 0;
117 virtual ttsdk::UserParameter GetUserParameter(const uint32_t index) const noexcept = 0;
118
120 virtual bool IsExchangeReject() const noexcept = 0;
121 virtual bool IsRiskReject() const noexcept = 0;
122 virtual ttsdk::OrderRejectReason GetRejectReason() const noexcept = 0;
123 virtual void GetExtendedRejectInfo(ttsdk::ExtendedRejectionInformation& info) const noexcept = 0;
125
127 virtual const char* GetText() const noexcept = 0;
128 virtual const char* GetTextA() const noexcept = 0;
129 virtual const char* GetTextB() const noexcept = 0;
130 virtual const char* GetTextC() const noexcept = 0;
131 virtual const char* GetTextTT() const noexcept = 0;
133
135 virtual ttsdk::MarketId GetColocation() const noexcept = 0;
138
139
140 private:
141 ExecutionReport(const ExecutionReport&) = default;
142 ExecutionReport& operator= (const ExecutionReport&) = default;
143 ExecutionReport(ExecutionReport&&) = default;
144 ExecutionReport& operator= (ExecutionReport&&) = default;
145 };
146
147
149
150
151}
Outbound order message receipt.
virtual void GetExtendedRejectInfo(ttsdk::ExtendedRejectionInformation &info) const noexcept=0
virtual ttsdk::UserDisconnectAction GetUserDisconnectAction() const noexcept=0
virtual const char * GetText() const noexcept=0
Order text fields.
virtual const char * GetTextB() const noexcept=0
virtual ttsdk::OrderRejectReason GetRejectReason() const noexcept=0
virtual uint64_t GetCurrentUserId() const noexcept=0
virtual double GetDisplayQty() const noexcept=0
virtual uint64_t GetOrderSequence() const noexcept=0
virtual double GetLastFillPrice() const noexcept=0
Fill information.
virtual const char * GetParentOrderId() const noexcept=0
virtual ttsdk::ExecType GetExecType() const noexcept=0
virtual ttsdk::MarketId GetMarket() const noexcept=0
virtual bool IsReject() const noexcept=0
virtual double GetOrderQty() const noexcept=0
virtual bool IsWorking() const noexcept=0
virtual bool IsChildOrder() const noexcept=0
virtual double GetTriggerPrice() const noexcept=0
virtual uint64_t GetUserId() const noexcept=0
User information.
virtual const char * GetSenderLocation() const noexcept=0
virtual bool IsAOTCCancel() const noexcept=0
virtual bool IsAOTCPositionTransferFill() const noexcept=0
virtual uint64_t GetTransactionTime() const noexcept=0
virtual const char * GetExecId() const noexcept=0
virtual bool IsExternalAction() const noexcept=0
virtual bool IsFill() const noexcept=0
virtual bool IsExchangeReject() const noexcept=0
Reject details.
virtual const char * GetSenderSubId() const noexcept=0
virtual double GetRefreshQty() const noexcept=0
virtual bool IsRiskReject() const noexcept=0
virtual ttsdk::OrdStatus GetOrderStatus() const noexcept=0
virtual bool IsTriggerActivated() const noexcept=0
virtual uint64_t GetRequestId() const noexcept=0
virtual ttsdk::CrossingOrderPreventionActionType GetCrossingOrderPreventionType() const noexcept=0
virtual ttsdk::OrderSide GetSide() const noexcept=0
virtual const char * GetConnection() const noexcept=0
virtual uint64_t GetBrokerId() const noexcept=0
virtual ttsdk::MarketId GetColocation() const noexcept=0
Synthetic/Algo related fields.
virtual double GetLastFillQty() const noexcept=0
virtual ttsdk::TimeInForce GetTimeInForce() const noexcept=0
virtual ttsdk::MultiLegReportingType GetMultiLegReportingType() const noexcept=0
virtual uint64_t GetInstrumentId() const noexcept=0
Instrument information.
virtual uint64_t GetAccountId() const noexcept=0
virtual ttsdk::OrderType GetOrderType() const noexcept=0
virtual double GetMinimumQty() const noexcept=0
virtual const char * GetTextC() const noexcept=0
virtual bool IsDelete() const noexcept=0
virtual uint64_t GetReceivedFromExchange() const noexcept=0
virtual uint32_t GetClientIp() const noexcept=0
virtual uint32_t GetUserParameterCount() const noexcept=0
virtual ttsdk::UserParameter GetUserParameter(const uint32_t index) const noexcept=0
virtual double GetPrice() const noexcept=0
virtual const char * GetTextTT() const noexcept=0
virtual const char * GetTextA() const noexcept=0
virtual const char * GetUniqueExecId() const noexcept=0
virtual const char * GetOrderId() const noexcept=0
Order status.
virtual bool IsFullFill() const noexcept=0
virtual double GetCumQty() const noexcept=0
virtual double GetLeavesQty() const noexcept=0
virtual const char * GetClearingAccount() const noexcept=0
virtual ttsdk::SynthStatus GetSynthStatus() const noexcept=0
MarketId
Definition MarketId.h:29
OrdStatus
Definition OrdStatus.h:29
ExecType
Definition ExecType.h:29
OrderType
Definition OrderType.h:29
OrderSide
Definition OrderSide.h:29