TT CORE SDK 2.0.1.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"
30#include "user_parameter.h"
32#include "shared_ptr.h"
33#include "consts.h"
34#include <math.h>
35
36namespace ttsdk
37{
48 {
49 public:
50 explicit ExecutionReport() {};
51 ~ExecutionReport() noexcept {};
52
53 virtual bool IsExternalAction() const noexcept = 0;
54 virtual bool IsFill() const noexcept = 0;
55 virtual bool IsFullFill() const noexcept = 0;
56 virtual bool IsDelete() const noexcept = 0;
57 virtual bool IsReject() const noexcept = 0;
58 virtual bool IsTriggerActivated() const noexcept = 0;
59 virtual bool IsWorking() const noexcept = 0;
60 virtual uint64_t GetTransactionTime() const noexcept = 0;
61
63 virtual const char* GetOrderId() const noexcept = 0;
64 virtual uint64_t GetRequestId() const noexcept = 0;
65 virtual const char* GetExecId() const noexcept = 0;
66 virtual const char* GetUniqueExecId() const noexcept = 0;
67 virtual ttsdk::OrdStatus GetOrderStatus() const noexcept = 0;
68 virtual ttsdk::ExecType GetExecType() const noexcept = 0;
69 virtual ttsdk::OrderType GetOrderType() const noexcept = 0;
70 virtual ttsdk::OrderSide GetSide() const noexcept = 0;
71 virtual ttsdk::TimeInForce GetTimeInForce() const noexcept = 0;
72 virtual ttsdk::SynthStatus GetSynthStatus() const noexcept = 0;
73 virtual double GetPrice() const noexcept = 0;
74 virtual double GetTriggerPrice() const noexcept = 0;
75 virtual double GetOrderQty() const noexcept = 0;
76 virtual double GetLeavesQty() const noexcept = 0;
77 virtual double GetCumQty() const noexcept = 0;
78 virtual double GetDisplayQty() const noexcept = 0;
79 virtual double GetRefreshQty() const noexcept = 0;
80 virtual double GetMinimumQty() const noexcept = 0;
81 virtual uint64_t GetOrderSequence() const noexcept = 0;
82 virtual uint32_t GetClientIp() const noexcept = 0;
84
86 virtual double GetLastFillPrice() const noexcept = 0;
87 virtual double GetLastFillQty() const noexcept = 0;
89 virtual uint64_t GetReceivedFromExchange() const noexcept = 0;
91
93 virtual uint64_t GetUserId() const noexcept = 0;
94 virtual uint64_t GetCurrentUserId() const noexcept = 0;
95 virtual uint64_t GetAccountId() const noexcept = 0;
96 virtual const char* GetClearingAccount() const noexcept = 0;
97 virtual uint64_t GetBrokerId() const noexcept = 0;
98 virtual const char* GetSenderSubId() const noexcept = 0;
99 virtual const char* GetSenderLocation() const noexcept = 0;
100 virtual const char* GetConnection() const noexcept = 0;
103 virtual const char* GetParentOrderId() const noexcept = 0;
104 virtual bool IsChildOrder() const noexcept = 0;
106
108 virtual uint64_t GetInstrumentId() const noexcept = 0;
109 virtual ttsdk::MarketId GetMarket() const noexcept = 0;
111
112 virtual uint32_t GetUserParameterCount() const noexcept = 0;
113 virtual ttsdk::UserParameter GetUserParameter(const uint32_t index) const noexcept = 0;
114
116 virtual bool IsExchangeReject() const noexcept = 0;
117 virtual bool IsRiskReject() const noexcept = 0;
118 virtual ttsdk::OrderRejectReason GetRejectReason() const noexcept = 0;
119 virtual void GetExtendedRejectInfo(ttsdk::ExtendedRejectionInformation& info) const noexcept = 0;
121
123 virtual const char* GetText() const noexcept = 0;
124 virtual const char* GetTextA() const noexcept = 0;
125 virtual const char* GetTextB() const noexcept = 0;
126 virtual const char* GetTextC() const noexcept = 0;
127 virtual const char* GetTextTT() const noexcept = 0;
129
131 virtual ttsdk::MarketId GetColocation() const noexcept = 0;
134
135
136 private:
137 ExecutionReport(const ExecutionReport&) = default;
138 ExecutionReport& operator= (const ExecutionReport&) = default;
139 ExecutionReport(ExecutionReport&&) = default;
140 ExecutionReport& operator= (ExecutionReport&&) = default;
141 };
142
143
145
146
147}
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 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::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