TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
reject_response.h
Go to the documentation of this file.
1/***************************************************************************
2 *
3 * Unpublished Work Copyright (c) 2018-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 "execution_report.h"
21#include "enums/CxlRejReason.h"
22
23namespace ttsdk
24{
26 {
27 public:
28 explicit RejectResponse() {};
29 ~RejectResponse() noexcept {};
30
31 virtual bool IsExternalAction() const noexcept = 0;
33 virtual const char* GetOrderId() const noexcept = 0;
34 virtual uint64_t GetRequestId() const noexcept = 0;
35 virtual ttsdk::OrdStatus GetOrderStatus() const noexcept = 0;
36 virtual ttsdk::OrderType GetOrderType() const noexcept = 0;
37 virtual ttsdk::OrderSide GetSide() const noexcept = 0;
38 virtual ttsdk::TimeInForce GetTimeInForce() const noexcept = 0;
39 virtual uint32_t GetClientIp() const noexcept = 0;
41
43 virtual uint64_t GetUserId() const noexcept = 0;
44 virtual uint64_t GetCurrentUserId() const noexcept = 0;
45 virtual uint64_t GetAccountId() const noexcept = 0;
46 virtual uint64_t GetBrokerId() const noexcept = 0;
47 virtual const char* GetSenderSubId() const noexcept = 0;
49
51 virtual uint64_t GetInstrumentId() const noexcept = 0;
52 virtual ttsdk::MarketId GetMarket() const noexcept = 0;
54
56 virtual bool IsExchangeReject() const noexcept = 0;
57 virtual bool IsRiskReject() const noexcept = 0;
58 virtual ttsdk::CxlRejReason GetRejectReason() const noexcept = 0;
59 virtual void GetExtendedRejectInfo(ttsdk::ExtendedRejectionInformation& info) const noexcept = 0;
60 virtual const char* GetText() const noexcept = 0;
62 virtual uint64_t GetTransactionTime() const noexcept = 0;
63
64
65 private:
66 RejectResponse (const RejectResponse&) = default;
67 RejectResponse& operator= (const RejectResponse&) = default;
68 RejectResponse (RejectResponse&&) = default;
69 RejectResponse& operator= (RejectResponse&&) = default;
70 };
71
72
74
75
76}
virtual uint64_t GetInstrumentId() const noexcept=0
Instrument information.
virtual const char * GetSenderSubId() const noexcept=0
virtual ttsdk::CxlRejReason GetRejectReason() const noexcept=0
virtual uint64_t GetRequestId() const noexcept=0
virtual ttsdk::OrderSide GetSide() const noexcept=0
virtual ttsdk::MarketId GetMarket() const noexcept=0
virtual ttsdk::OrdStatus GetOrderStatus() const noexcept=0
virtual const char * GetText() const noexcept=0
virtual const char * GetOrderId() const noexcept=0
Order status.
virtual uint64_t GetTransactionTime() const noexcept=0
virtual uint64_t GetBrokerId() const noexcept=0
virtual uint64_t GetUserId() const noexcept=0
User information.
virtual ttsdk::OrderType GetOrderType() const noexcept=0
virtual bool IsExternalAction() const noexcept=0
virtual uint32_t GetClientIp() const noexcept=0
virtual bool IsRiskReject() const noexcept=0
virtual bool IsExchangeReject() const noexcept=0
Reject details.
virtual uint64_t GetCurrentUserId() const noexcept=0
virtual ttsdk::TimeInForce GetTimeInForce() const noexcept=0
virtual void GetExtendedRejectInfo(ttsdk::ExtendedRejectionInformation &info) const noexcept=0
virtual uint64_t GetAccountId() const noexcept=0
MarketId
Definition MarketId.h:29
OrdStatus
Definition OrdStatus.h:29
OrderType
Definition OrderType.h:29
OrderSide
Definition OrderSide.h:29